Skip to content
Sharp

Object-oriented programming · interview question

Which of the following best describes a class in Java?

Multiple choiceEasychapter-2-curatedpremiumoopclasses-and-objects
Choose one answer
Answer and explanation

Correct answer

A. A blueprint for creating objects

Why

A class in Java serves as a blueprint for creating objects. It defines the structure (fields) and behavior (methods) that the objects created from it 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 →