why java does not support multiple inheritance
Answer Posted / smitha
Java supports multiple inheritence indirectly through the
use of interface. In case we are able to extend more than
one class then there would be a confusion of which method to
process in case both classes have same method name(Same
method signature also).
In case of using interfaces to support multiple inheritance
we escape this problem as we define the methods that are
needed only.
| Is This Answer Correct ? | 232 Yes | 54 No |
Post New Answer View All Answers
Write a program to find maximum and minimum number in array?
Is void a data type?
Where is stringbuffer stored?
How many types of literals are there in JAVA?
Can you call a method on a null object?
Is 0 an irrational number?
Is java 1.7 the same as java 7?
How can u increase the heap size in the memory?
What is the buffer limit?
Which command from the jdk compiles a java program?
What are heterogeneous objects?
What does indexof return in java?
What do you mean by chromounits in java8?
What is the difference between processes and threads?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea