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
What are recursive functions? Give some examples?
Realized?
What is instanceof keyword?
What is the use of java?
Is 0 a real number?
What is meant by oops concept in java?
What is a static method in java?
What will happen to the exception object after exception handling?
Does unicode support all languages?
Does string isempty check for null?
Can anonymous class have constructor?
What is the primary benefit of encapsulation?
What is heterogeneous in java?
What are decalarations?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).