why java does not support multiple inheritance
Answer Posted / mustakim
because it genereate diamond problem. e.g. Class A has
Show()Method and Class B,C extends in A class so show() will
come in B,C class.now Class D extends C class and access
show() method then it will generate Error such as multiple
Defination.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are variable names?
What are the different types of inheritance in java?
Name component subclasses that support painting in java programming?
What does main method?
How do I get a substring?
what is comparable and comparator interface?
Why method overriding is used?
What is primitive data type in java?
How can we create an immutable class in java?
Can a class be declared as protected?
What is a predicate method?
When does an object becomes eligible for garbage collection in java?
Can we declare register variable as global?
How is java hashmap implemented?
Can we have multiple public classes in a java source file?