In Java, a class declared final:
Show answerHide answer
Correct answer: (B) Cannot be inherited
Explanation
final class → no subclasses; final method → no override; final variable → constant.
Correct answer: (B) Cannot be inherited
Explanation
final class → no subclasses; final method → no override; final variable → constant.
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.