Skip to content
Sharp

Object-oriented programming · interview question

Why does a class in Java matter in practice?

Multiple choiceEasychapter-2-curatedpremiumoopobject-interaction
Choose one answer
Answer and explanation

Correct answer

C. To define a blueprint for creating objects.

Why

A class in Java serves as a blueprint for creating objects, defining properties and behaviors that the objects instantiated from the class will have.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →