What is the use of the “final” keyword in Java?
A. to indicate that a variable cannot be reassigned
B. to indicate that a method cannot be overridden
C. to indicate that a class cannot be inherited
D. All of the above
Answer:D
What is the use of the “final” keyword in Java?
A. to indicate that a variable cannot be reassigned B. to indicate that a method cannot be overridden C. to indicate that a class cannot be inherited D. All of the above