What is final method

Showing Answers 1 - 2 of 2 Answers

mahendra

  • Jul 5th, 2005
 

method declared as final as 2 uses. 
1.method declared as final cannot be overridden. 
2.method declared as final cannot be inherited.

  Was this answer useful?  Yes

CalBear

  • Jun 2nd, 2008
 

Method declared as final cannot be overridden but CAN be inherited. Example: The isAlive() method in Thread class is marked final but any subclass of class Thread inherits that method i.e. method isAlive() can be invoked on an instance of the subclass.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions