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
Can we use static class instead of singleton?
How are variables stored in memory?
Explain the difference between hashmap and hashtable in java?
What is a databasemetadata?
What is a class component?
What is identifier in java?
How will you load a specific locale?
What are the files generated after using IDL to java compiler?
What is a nullable field?
What is instance example?
What is style and indentation?
What is string [] java?
Why is singleton instance static?
How do I enable java in safari?
What is the preferred size of a component in java programming?