Java does not support multiple inheritance.
how interface helps in the same?

Answer Posted / sachin ghare

It might be possible. Inherited both classes contain same method. And java by defualt polymorpic so at the time of compilation it will generate error.that's why. Interface contain astract methods so it Will manage stuff

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the synonym of framework?

755


What is a java lambda expression?

782


What is Major and importance difference between for and foreach loop ?

802


What are the important features of Java 11 release?

776


What are the different ways of implementing thread? Which one is more advantageous?

738


Can you declare an interface method static?

794


How are this() and super() used with constructors in java programming?

754


Explain the difference between the public, private, final, protected, and default modifiers?

782


What are the limitations of procedural programming approach?

742


What is meant by class?

761


What are the legal operands of the instanceof operator?

780


What is difference between float and double?

691


What is mysql driver class name?

801


How to find the index of the largest number in an arraylist java?

717


What's the default access specifier for variables and methods of a class?

757