why java does not support multiple inheritance
Answer Posted / rajiv
java does not support multiple inheritance because it does
not meet object oriented specification. Due to ambiguity
problem will arise if two or more superclass have the same
method name, and the super keyword will not be able to
decide which superclass to call. so we use interface to
solve this problem.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is difference between static class and normal class?
What is the driver class?
What are the different types of java?
What is anagram number?
How to do a true java ping from windows?
Why does it take so much time to access an applet having swing components the first time?
Difference between predicate, supplier and consumer ?
What is structure of java heap? What is perm gen space in heap?
What is the difference between sleep and wait in java?
What is linked hashmap and its features?
What is polymorphism java example?
What is gc()?
What is the lifetime and scope of a variable?
What is the maximum size of list in java?
Can a class have multiple superclasses?