why java is not supporting multiple inheritence?

Answers were Sorted based on User's Feedback



why java is not supporting multiple inheritence?..

Answer / ravikiran

Because we cann't extend more that one class with in a
class. But indirectly interfaces will provide the same
functionality by implementing more than one interfaces

Is This Answer Correct ?    5 Yes 1 No

why java is not supporting multiple inheritence?..

Answer / mani.d [wipro]

Java doesn't support mutiple inheritance because
of 'Diamond problem'. The 'diamond problem' is an ambiguity
that can occur when a class multiple intehertis from two
classes that both descend from a common superclass.

Is This Answer Correct ?    4 Yes 1 No

why java is not supporting multiple inheritence?..

Answer / sunilkumar12317

we can't extends two class to another class

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Core Java Interview Questions

what are different ways in which a thread can enter the waiting state? : Java thread

0 Answers  


What are the different types of inner classes?

0 Answers  


Can we use string in the switch case?

0 Answers  


what is a static block?

4 Answers  


What is method reference?

0 Answers  






Explain the difference between hashmap and hashtable in java?

0 Answers  


When can we say that threads are not lightweight process in java?

0 Answers  


How do you reverse a word in java?

0 Answers  


Can we inherit inner class?

0 Answers  


Explain jdk, jre and jvm?

0 Answers  


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

0 Answers  


what are the uses of Class class and what it returns? explain it with the example code.

1 Answers  


Categories