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 does business logic mean?

0 Answers  


how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?

1 Answers   Satyam,


Can we overload the main() method?

0 Answers  


types of applets?.

7 Answers   TCS,


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

0 Answers  


What are the important features of Java 11 release?

0 Answers  


what is the purpose of "virtual"?

0 Answers   EDS,


What are different access specifiers in java? Explain

0 Answers  


What are the main uses of this keyword?

0 Answers  


Do you know how to reverse string in java?

0 Answers  


Why spring singleton is not thread safe?

0 Answers  


What is interface and its use?

8 Answers   HCL,


Categories