Skip to content
Sharp

Object-oriented programming · interview question

In Java, what is an object?

Multiple choiceEasychapter-2-curatedpremiumoopbasic-modeling
Choose one answer
Answer and explanation

Correct answer

A. An instance of a class.

Why

An object is an instance of a class. It represents a specific realization of that class, with its own set of data that conforms to the class's structure.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →