Question 137

In Java, a class declared final:

  1. AMust be abstract
  2. BCannot be inherited
  3. CCannot be instantiated
  4. DCannot have methods
Show answerHide answer

Correct answer: (B) Cannot be inherited

Explanation

final class → no subclasses; final method → no override; final variable → constant.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 137 of DSSSB TGT Computer Science Full Mock Test 2. 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.