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