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
Answer: D
Explanation: The ‘final’ keyword can be used to indicate that a variable, class, or method cannot be changed, inherited, or overridden respectively.