why java does not support mulitple inheritance directly?

Answers were Sorted based on User's Feedback



why java does not support mulitple inheritance directly?..

Answer / kranthi kumar adari.

Java doesnot support multiple inheritance bcoz it leads to
ambiguity when two base classes are having same function
signature.

Is This Answer Correct ?    9 Yes 0 No

why java does not support mulitple inheritance directly?..

Answer / sumit pal singh

java Doesn't Support multiple inheritance.when two super classes have same variable name and same method name .then subclass confused from which class variable and method will be executed.due to this ambiguity is produced and java is a simple programming language not produce any confusion to developer.so multiple inheritance is restricted in java.

Is This Answer Correct ?    0 Yes 0 No

why java does not support mulitple inheritance directly?..

Answer / ravikiran

Because we cann't extend more than one class at once

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More Core Java Interview Questions

What are the ways to instantiate the class class?

0 Answers  


abstract class A{ int list []=new int [100]; A(int x,int y){ rondom n=new rondom(); for (int i==;i<100;i++); list [i]=x+r.next int(y-x+1); abstract sort (); abstract binary sarch(int temp); class B extends A{

3 Answers  


How many bytes is a url?

0 Answers  


What is stringbuffer in java?

0 Answers  


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose.

2 Answers   Infosys, Tech Mahindra,






What is a copy constructor in java?

0 Answers   Amazon,


What is a container in a gui?

0 Answers  


What are the 5 types of research methods?

0 Answers  


How do you write methodology?

0 Answers  


Is string an object?

0 Answers  


What is static in java?

0 Answers  


What are namespaces in java?

0 Answers  


Categories