why java does not support multiple inheritance
Answer Posted / sskur
To say why java doesn't support inheritance directly like c++
should be the diamond problem faced by c++,
(Diamond problem is an ambiguity that arises when two
classes B and C inherit from A, and class D inherits from
both B and C. If a method in D calls a method defined in A
(and does not override it), and B and C have overridden that
method differently, then via which class does it inherit: B,
or C?)
Is This Answer Correct ? | 206 Yes | 22 No |
Post New Answer View All Answers
Can you pass by reference in java?
What is structure of java heap? What is perm gen space in heap?
Is arraylist ordered?
What is the biggest integer?
What are the different ways of creating thread?
Write a program to check for a prime number in java?
How do you identify independent and dependent variables?
How can we pass argument to a function by reference instead of pass by value?
What is bitwise complement?
What is the final access modifier in java?
Is set thread safe java?
Can static methods access instance variables in java?
What is difference between hashset and hashmap in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is math exp in java?