why is multiple inheritance not allowed in java?
Answer Posted / haridini
Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.
| Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
Explain tree set and its features?
What is the effect of keeping a constructor private?
what is thread in Java ?
What is a functional interface?
Is it possible to override private or static method in java?
How do you check if a character in a string is a digit or letter?
State some advantages of java?
What is hashmap in java?
What is the basic difference between string and stringbuffer object?
What is composition in java?
Can vector have duplicates in java?
what is meant by Byte code concept in Java?
Is static a singleton?
What are the two categories of data types in the java programming language?
What is passed by reference and pass by value ?