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 is variable declaration and definition?
What is a generic code?
What is the purpose of extern variable?
Why destructor is not used in java?
Can list be null in java?
How do you declare a string variable?
What is the purpose of a volatile variable?
Why hashcode is used in java?
What is the difference between the font and fontmetrics classes in java programming?
What data structures are used to perform recursion?
How many types of methods are there?
What is an interoperable application in java ?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
Is it possible for a yielded thread to get chance for its execution again?
What is core java called?