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
Can java run on google chrome?
What is a jagged array in java?
What is meant by binding in rmi?
Which list does not allow duplicates in java?
What type of language is java?
What is purpose of applet programming?
Which object oriented concept is achieved by using overloading and overriding?
Can we override private method?
What is a map in java?
How many bits is a float?
How to check if a list is sorted in java?
What is constructor in java ?
What is anti pattern in programming?
What is a java object and java application?
What is return code?