why java does not support mulitple inheritance directly?

Answers were Sorted based on User's Feedback



why java does not support mulitple inheritance directly?..

Answer / kranthi kumar adari.

Java doesnot support multiple inheritance bcoz it leads to
ambiguity when two base classes are having same function
signature.

Is This Answer Correct ?    9 Yes 0 No

why java does not support mulitple inheritance directly?..

Answer / 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

why java does not support mulitple inheritance directly?..

Answer / ravikiran

Because we cann't extend more than one class at once

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More Core Java Interview Questions

What is strings in java?

0 Answers  


Which is better list or arraylist in java?

0 Answers  


what is the difference between statis block and static variable

7 Answers  


List some features of the abstract class.

0 Answers  


What is difference between static and abstract class?

0 Answers  






What is thread safe java?

0 Answers  


What is java basic concept?

0 Answers  


What is autoboxing in java?

0 Answers  


Can you explain the final method modifier?

0 Answers  


Is namespace same as package in java?

0 Answers  


explain System.out.println()

12 Answers   CTS,


what is class.forname() and how it will be useful ?

3 Answers  


Categories