What is the purpose of the "final" keyword in Java?
A. To indicate that a method cannot be overridden by a subclass.
B. To indicate that a class cannot be subclassed.
C. To indicate that a variable cannot be reassigned once it has been initialized.
D. All of the above.
Answer:D
What is the purpose of the "final" keyword in Java?
A. To indicate that a method cannot be overridden by a subclass. B. To indicate that a class cannot be subclassed. C. To indicate that a variable cannot be reassigned once it has been initialized. D. All of the above.