Is multiple inheritance allowed in Java? Why ?

Answer Posted / bhasker tiwari

All the answer given above are True .
but i would like to add few more.
Reasons are follows:
1.As java creates .class for each Java file.and As all java
files has there own variable and methods so incase of
Multiple inheritence all will mess up , so to avoid this
situation Java do not allow Multiple Inheritence.
2. the above discussed Diamond problem is also a Reason.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of constants?

519


Explain creating threads by extending thread class ?

580


I want to re-reach and use an object once it has been garbage collected. How it's possible?

541


what is the major difference between linkedlist and arraylist in java?

551


What are passing parameters?

588






Is finalize() similar to a destructor?

554


What is difference between ++ I and I ++ in java?

533


Explain the difference between collection api and stream api in java8?

511


What data type is true or false?

577


What is the properties class?

561


how many types of Inheritance?

653


Are arrays static in java?

588


What does i ++ mean in Java?

502


Explain the difference between abstraction and encapsulation.

535


What is queue in java?

554