Which of the following statements(s) with regard to an abstract class in JAVA is/are TRUE?
Which of the following statements(s) with regard to an abstract class in JAVA is/are TRUE?
I. An abstract class is one that is not used to create objects.
II. An abstract class is designed only to act as a base class to be inherited by other classes.
Show answerHide answer
Correct answer: (D) Both I and II
Explanation
A class declared abstract cannot be instantiated; it must be extended and its methods implemented. It is designed only to act as a base class to be inherited by other classes. So both I and II are true.