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 a modifier?
What about interrupt() method of thread class ?
What methodology can be utilized to link to a database?
What are methods in java?
What is an inner class in java?
What is variable and rules of variable?
How do you add an element to a set in java?
What is unicode in java?
Can you override a final method?
Implement a stack with push (), pop() and min() in O(1) time.
List some important features of java 10 release?
What is functional interface in javatpoint?
What are the types of java languages?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is the difference between an inner class and a sub-class?