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


Please Help Members By Posting Answers For Below Questions

What do you mean by flow of struts?

1023


Can we access the non-final local variable, inside the local inner class?

788


What are the important features of Java 10 release?

769


What environment variables are required to be set on a machine in order to run Java programs?

887


Can a variable be local and static at the same time?

781


What is a cup of java?

804


Write a code to create a trigger to call a stored procedure

749


What are void methods?

817


What is the use of private static?

800


How do you check if a string contains only numeric digits?

885


How to instantiate static nested classes in java?

802


What is an off by one error in java?

732


Why is String immutable?

849


Can a class have 2 constructors?

686


Do I need java on my computer?

751