why java does not support multiple inheritance

Answer Posted / neeraj kumar singh

in multiple inheritance there are a number of base class so
when ever we use super keyword to call any method then
compiler do not recognize the base class form which property
and method have to use.since there is only one way to call
base class method and property which is super keyword. so
because of super keyword, java do not support multiple
inheritance but it is possible with help of interface.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster set or list in java?

541


How can we break singleton in java?

531


Are strings immutable in java?

532


Is java still necessary?

631


What is map and hashmap in java?

629






What is vector?

595


What is string and its types?

623


How does linkedhashmap work in java?

527


Is array a class in java?

511


What is a ternary operator in java? What is an interface?

557


Is null false in java?

714


What is the purpose of file class?

559


What does g mean in regex?

574


What is outofmemoryerror in java?

573


How to change value in arraylist java?

512