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
Name few "optional" classes introduced with java 8 ?
What is the use of predicate in java 8?
What is keyword auto for?
What do you understand by soft reference?
When does an object becomes eligible for garbage collection in java?
Can we use catch statement for checked exceptions?
What is class??
What is array initialization in java?
What are basic data types?
What are the four integer types supported by java?
Why use string handling in Java?
What super () does in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is rmi and steps involved in developing an rmi object?
How do you escape in java?