Skip to content
Sharp

Object-oriented programming · interview question

Which Java keyword would you use to declare an abstract class in Java?

Multiple choiceEasychapter-5-curatedpremiumoopabstract-classes
Choose one answer
Answer and explanation

Correct answer

B. Abstract

Why

The 'abstract' keyword is used in the class declaration to specify that the class cannot be instantiated and may contain abstract methods.

Test yourself on Object-oriented programming

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

Start free test
All Object-oriented programming questions →