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

Is char a method in java?

502


how to create multithreaded program? Explain different ways of using thread? : Java thread

519


What is the indent key?

577


What are constants and how to create constants in java?

544


What is the numeric promotion?

485






Is null a string in java?

546


Can a constructor be protected?

519


Which is bigger double or float?

515


What is the difference between throw and throws keywords?

562


What is the use of generics? When was it added to the Java development Kit?

541


Can I learn java without any programming experience?

540


How can an object be unreferenced?

532


What are the high-level thread states in java programming?

568


Can we pass a primitive type by reference in java? How

518


Is finalize() similar to a destructor?

540