Q. Which keyword is used to prevent inheritance?
β
Correct Answer: (B)
final
Explanation: The 'final' keyword prevents class inheritance.