Question: What is the purpose of the 'final' method in Java?Answer: A 'final' method in Java cannot be overridden by subclasses. It is used to prevent modification of a method in a subclass.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: