What restrictions are placed on method overriding?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What restrictions are placed on method overriding?
Ans. Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   overriding      basic        frequent

Try 2 Question(s) Test


Related Questions

  What are points to consider in terms of access modifier when we are overriding any method?
  Difference between Overloading and Overriding ?
  How compiler handles the exceptions in overriding ?
  what is covariant return type?
 Any real life example of Overloading and Overridding ?
  Overridden methods must have the same ...
  What is a Final Method ?
  Can we reduce the visibility of the inherited or overridden method ?
 How does java identifies which method to be called in method overriding or runtime polymorphism, when both methods share the same name and signature ?
  Can we reduce the visibility of the overridden method ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: