What is the purpose of the "final" keyword in Java?
A. To indicate that a variable cannot be changed.
B. To indicate that a method cannot be overridden.
C. To indicate that a class cannot be subclassed.
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. B. To indicate that a method cannot be overridden. C. To indicate that a class cannot be subclassed. D. All of the above