Is multiple inheritance allowed in Java? Why ?

Answer Posted / midhun h kumar

No ...
Multiple inheritance is not allowed in Java...
but infact we can achieve the functionality using interfaces...
we can define interfaces and any class can implement these
interfaces..
a class can implement any number of interfaces but can
extend only one class..
thus we can achieve what we expect to get from multiple
inheritance thru interfaces...

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array and arraylist in java?

518


What is a numeric format?

552


What is the internal implementation of set in java?

492


What are static methods?

567


Is java pass by value or pass by reference?

532






How do I write a self declaration?

539


What is bubble sorting in java?

586


What is the main difference between java platform and other platforms?

497


When super keyword is used?

585


How does callback work in java?

597


What is the size of arraylist in java?

600


When should you make a function static?

537


Can we have try without catch block?

635


Can we define package statement after import statement in java?

552


Differentiate between stringbuffer and string?

587