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 blank final variable?
What state is a thread in when it is executing?
what are the methods in object?
What are the 3 types of loops in java?
List some important features of java 10 release?
What is a classloader in java?
What is the relationship difference the canvas class and the graphics class?
What are internal and external variables?
How do you compare two strings lexicographically?
What is the purpose of an interface?
What is bitwise complement?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
Which are the two subclasses under exception class?
Why spring singleton is not thread safe?
Where is the singleton class used?