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

Are private methods final?

488


What is arraylist class in java?

515


What is treeset in java?

547


What are the types of web technologies?

527


What is a protected void?

506






Explain about varargs in java?

583


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3192


What is not object oriented programming?

508


Can a top level class be private or protected?

574


String class is defined under which package in java?

625


Explain thread in java?

664


What are some alternatives to inheritance?

559


What is the major difference between linkedlist and arraylist?

510


What are the different data types in java?

533


When does an object becomes eligible for garbage collection in java?

578