If two Interfaces have same Method, how to handle that Method in a Class implementing these two Interfaces?
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. If two Interfaces have same Method, how to handle that Method in a Class implementing these two Interfaces?Core Java
Ans. It doesn't matter how you define that method in implementing class. there will be only one definition provided and that method can be accessed using reference of either of the interfaces.

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

   Like         Discuss         Correct / Improve          Asked in 1 Companies


Related Questions

  Differences between abstract class and interface ?
 What are the different uses of Interfaces in Java ?
 Why can't we have diamond problem with interfaces ?
  What is the difference between List, Set and Map ?

or

What are the different Java Collections Interfaces ?
  What are Marker Interfaces ? Name few Java marker interfaces ?
  Can we declare interface methods as private ?
 If an Abstract class has only abstract methods, What's the difference between such a class and an interface ?
  What are the design considerations while making a choice between using interface and abstract class ?
  What are the Core Interfaces of Hibernate Framework ?
  Does java allow implementation of multiple interfaces having Default methods with Same name and Signature ?



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: