How multipleInheritance is possible in java?

Answer Posted / gopi

Namrata what i am telling is,multiple inheritence is not
possible in java.that is every body knows but the thing is,
in c++ while the time of multiple inheritance ambiguity is
happened.like if u have same methods in all extended classes
while the time execution ambiguity will happen.but in the case
of interfaces in java even though u have same methods in all
interfaces there s no ambiguity at execution.for avoiding this
ambiguity in c++ we are using virtual keyword.
ofcourse ur correct.but internally interfaces are satisfied
the multiple interfaces concept.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can java object be locked down for exclusive use by a given thread? : Java thread

525


What is mvc in java?

551


Are arrays static in java?

577


what is the messsage u r going to get from an objectoriented programing?

1601


Why a dead thread occurs?

566






How to make a class or a bean serializable?

537


Can you extend main method in java?

613


Is space a character in java?

507


What is the importance of main method in Java?

567


What is the difference between preparedstatement and statement in java?

544


Why do we use bufferedreader?

524


What is the exact difference in between Unicast and Multicast object? Where will it be used?

577


What is a classloader in java?

530


What is the mapping mechanism used by java to identify IDL language?

584


What is dynamic array in java?

518