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
What’s the difference between constructors and other methods?
What is the super void?
What is difference between final and finally in java?
Explain importance of throws keyword in java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What are the types of web technologies?
Difference between overriding and overloading in java?
What is difference between path and classpath in java?
What is incompatible types in java?
Convert Binary tree to linked list.
What access modifiers can be used for methods?
Does java set allow duplicates?
Explain what do you mean by functional overloading in java?
What is the significance of java packages?
what is function overloading in java?