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
Is vector thread safe in java?
Can you access non static variable in static context?
Is java developer a good career?
How many bytes is 255 characters?
When throws keyword is used?
What are scalar data types?
Explain different states of a thread in java?
When can we say that threads are not lightweight process in java?
Is set sorted in java?
What is difference between == and === in js?
What does 0 mean in boolean?
What is the string function?
Explain the difference between comparator and comparable in java?
What are namespaces in java?
Can we create a constructor in abstract class?