why java does not support multiple inheritance
Answer Posted / shiva
multiple inheritance means a sub class which is derived from
two base classes.
assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.
now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.
| Is This Answer Correct ? | 22 Yes | 6 No |
Post New Answer View All Answers
What is fail fast in java?
How many bits is a string?
what is a working thread? : Java thread
What is OOP's Terms with explanation?
Write a program to solve producer consumer problem in java?
What is a boolean used for?
What does the string method compareto () do?
What is the difference between overriding and overloading in OOPS.
Which software is used for java programming?
How to instantiate member inner class?
What is a method declaration?
What does those terms actually mean included in the j.d.k i.6?
What is a java applet? What is an interface?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Can we extend immutable class?