What is the purpose of the "final" keyword in Java?
A. To prevent a class from being extended.
B. To prevent a method from being overridden.
C. To prevent a variable from being reassigned.
D. All of the above.
Answer:D
What is the purpose of the "final" keyword in Java?
A. To prevent a class from being extended. B. To prevent a method from being overridden. C. To prevent a variable from being reassigned. D. All of the above.