Blogger

Delete comment from: Java67

Anonymous said...

18: What will happen if a class extends two interfaces and they both have a method with same name and signature? (detailed answer)

THe answer of this question is wrong.
Answer :
Code will compile properly and there is no ambigutiy as only one method implementation will be there,Compiler does not have to distinguish the method from which Interface it is

Dec 18, 2018, 2:37:22 AM


Posted to Top 21 Java Inheritance Interview Questions and Answers

Google apps
Main menu