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 does i ++ mean in Java?

695


What is array pointers ?

790


What do you understand by access specifiers in Java?

776


Explain how can you debug the Java code?

820


Why is flag used in java?

742


Difference between java and javascript

792


Can you add null to a list java?

780


How many types of operators are there?

713


What is the difference between a static and a non-static inner class in java programming?

714


How many inner classes can a class have?

790


What are different ways of object creation in java ?

764


How can we avoid including a header more than once?

788


What are the benefits of operations?

697


What is void in java?

797


Is there any difference between nested classes and inner classes?

792