Q. Which keyword is used to prevent a method from being overridden?

A
final
B
static
C
abstract
D
protected
Solution:

The final keyword, when applied to a method, prevents it from being overridden in a subclass.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!