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
What is difference between arraylist and list in java?
What is the difference between object oriented programming language and object based programming language?
How does compareto work in java?
Why use string handling in Java?
What is anonymous inner class?
What is thread synchronization in java?
What are data types in programming?
How can we find the sum of two linked lists using stack in java?
How do you access command-line arguments within the code?
What is integer size in java?
When super keyword is used?
What is the longest unicode character?
How to sort elements in a parallel array in java?
What is java and why do we need it? Explain
Can a static class implement an interface?