in JAVA by

What is the purpose of the ‘final’ keyword in Java?

A) To indicate that a variable cannot be changed after initialization

B) To indicate that a class cannot be inherited

C) To indicate that a method cannot be overridden

D) All of the above

1 Answer

0 votes
by

Answer: D

Explanation: The ‘final’ keyword can be used to indicate that a variable, class, or method cannot be changed, inherited, or overridden respectively.

...