why java does not support multiple inheritance
Answer Posted / neeraj kumar singh
in multiple inheritance there are a number of base class so
when ever we use super keyword to call any method then
compiler do not recognize the base class form which property
and method have to use.since there is only one way to call
base class method and property which is super keyword. so
because of super keyword, java do not support multiple
inheritance but it is possible with help of interface.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the maximum size of arraylist in java?
What do you mean by local variable and instance variable?
What is set in java?
If an object is garbage collected, can it become reachable again?
Is null in java?
What is the difference between reader/writer and inputstream/output stream?
Is array a class in java?
What’s the difference between callable and runnable?
What are different access specifiers in java?
Write a function to print Fibonacci series and Tribonacci series?
Can a class be private?
What are static methods?
What is keyword auto for?
What is the difference between post and put?
what is bmg file and how to create that files?what will it contailn?