Java does not support multiple inheritance.
how interface helps in the same?
Answer Posted / sushila sonare
in java only one super class should be there. If we are
saying multiple inheritance there is more then one super
class and at time of object creation super(){super calling
statement} statement is invoked and control goes to super
class but if we are saying multiple inheritance then there
is more than one super class so JVM getting confused,
control goes to where. So avoiding this confusion only
single inheritance are allowed in JAVA you can use this
concepts in multiple levels.
In interface compiler is not keeping default constructor, so
there is no constructor chain. Thats why we can have
multiple interface at same level.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain a few methods of overloading best practices in java?
Can we override private constructor in java?
What is multi-catch block in java?
What is an abstract class and what is it’s purpose?
What is difference between ++ I and I ++ in java?
How do you compare objects in java?
What is a method in programming?
what is the difference between thread and runnable types? : Java thread
What package is math in java?
What is casting in java programming?
How to invoke external process in java.
Why string is not a wrapper class?
If try block is successfully executed, Then Is Finally block executed?
What is the purpose of nested class in java?
Why string is immutable with example?