why java does not support mulitple inheritance directly?
Answer Posted / sumit pal singh
java Doesn't Support multiple inheritance.when two super classes have same variable name and same method name .then subclass confused from which class variable and method will be executed.due to this ambiguity is produced and java is a simple programming language not produce any confusion to developer.so multiple inheritance is restricted in java.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is int short for?
How many types of flags are there?
what is use of functional interface in java 8?
What is double parsedouble in java?
What mechanism does java use for memory management?
What is the Concept of Encapsulation in OOPS
How do you sort in descending order in java using collections sort?
Tell me about different OOPS concepts.
What is tree in java?
What programs use java?
Describe different states of a thread.
From the two, which would be easier to write: synchronization code for ten threads or two threads?
How many bytes is string in java?
Does java support Operator Overloading?
What is meant by attribute?