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
What do you mean by flow of struts?
Can we access the non-final local variable, inside the local inner class?
What are the important features of Java 10 release?
What environment variables are required to be set on a machine in order to run Java programs?
Can a variable be local and static at the same time?
What is a cup of java?
Write a code to create a trigger to call a stored procedure
What are void methods?
What is the use of private static?
How do you check if a string contains only numeric digits?
How to instantiate static nested classes in java?
What is an off by one error in java?
Why is String immutable?
Can a class have 2 constructors?
Do I need java on my computer?