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
How do you check whether the list is empty or not in java?
Is set ordered?
How to perform merge sort in java?
What is an object in java and how is it created?
What about features of local inner class?
Can we change the value of static variable?
What are the disadvantages of using inner classes?
What is used of static keyword in java?
What is a method in java?
What is difference between classpath and path variables in java?
What is byte code and why is it important to java’s use for internet programming?
What is set in java?
What is difference between java and java ee?
What is the public method modifier?
What is meant by main method?