Which of these keywords can be used to prevent inheritance of a class?
A. super
B. constant
C. Class
D. final
Answer:A
Which of these keywords can be used to prevent inheritance of a class?
A. super B. constant C. Class D. final
Explanation: Declaring a class final implicitly declares all of its methods final, and makes the class inheritable.