Question 51Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

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.
  1. AOnly I
  2. BOnly II
  3. CNeither I nor II
  4. DBoth I and II
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.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 51 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.