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
Is class forname reflection?
Difference between serialization and deserialization in java?
How do we access static members in java?
What is the right data type to represent a price in java?
What is bytecode verifier?
Explain numeric promotion?
What are synchronized methods and synchronized statements in java programming?
What is the difference between member variables initialization and assignment in a constructor?
Explain about data types?
Can a constructor call another constructor?
How can we run a java program without making any object?
What are the basic concepts of OOPS in java?
Can we instantiate interface in java?
How many bits is a string?
What about static nested classes in java?