Java does not support multiple inheritance.
how interface helps in the same?
Answer Posted / naseer
In java through interface we can acheive multiple inheritence.but not class. class can extend only one class
suppose if class A has one method m1() and class B has method m1() there are two diffrent implementaion whenver we can extends two class here some confusions ..A class has diffeent implementaion and B class has diffrent implementation.
suppose interface A has one method m1() and inteface B has one method m1() whenever interface extend two interfaces common method will be there we can override any method beacuase here implementaion is common for both methods
in classse implementaion is diffreent for both methods
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is an escape character in java?
What are the basics of core java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Is main an identifier?
Tell some latest versions in JAVA related areas?
Difference between notify() method and notifyall() method in java?
what is difference betweem home interface and remote interface?
Why method overriding is used?
What are the differences between checked exception and unchecked exception?
Is integer immutable in java?
How to calculate the length of a singly linked list in java?
Explain the difference between extends thread vs implements runnable in java?
Is singleton thread safe in java?
What is the main use of java?
How do you declare an empty string?