Vidyalelo
Java Programming · Q27

Declaration and Access Control

Programming · Java Programming · question 27

Q27

In Java, what is the purpose of the final keyword when applied to a class?

A.
It makes the class non-final.
B.
It prevents subclassing.
Answer
C.
It makes the class constant.
D.
It makes the class abstract.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board