Does Java support multiple Inheritance?

Answers were Sorted based on User's Feedback



Does Java support multiple Inheritance?..

Answer / santhosh

As per my knowledge java does not support multiple
inheritance through interfaces.Only the people copying the
syntax and saying like that.


my view is what is there in interfaces to inherit?


Because there is nothing to inherit from interfaces,all the
methods are by default public and all the variables are
public static final by default.

Is This Answer Correct ?    0 Yes 3 No

Does Java support multiple Inheritance?..

Answer / tewodros tesema

yes.actually java suports multiple inheritance
example:
class A{
int a=10;
}
class b extends A{
int b=3;
}
clss c extends b{
int c=a+b;
system.out("result"+c);
}
here calss b in herits a and clas c in herits b the it also
in herits a through b. also since java uses interfaces it
also suports multiple inheritance.

Is This Answer Correct ?    2 Yes 29 No

Post New Answer

More Core Java Interview Questions

What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky

6 Answers   Accenture, EDS,


What is bubble sorting in java?

1 Answers  


What are JVM.JRE, J2EE, JNI?

1 Answers  


Differentiate between stringbuffer and stringbuilder in java.

1 Answers  


Why java does not supports multiple inheritance?

3 Answers   TCS, VSoft,


Explain the importance of finalize() method.

1 Answers  


What is byte value?

1 Answers  


Difference between class#getinstance() and new operator ?

1 Answers  


How does multithreading take place on a computer with a single cpu in java programming?

1 Answers  


What is the final access modifier in java?

1 Answers  


If you are given the name of the function at run time how will you invoke the function?

1 Answers   Adobe, Yahoo,


What is vector capacity in java?

1 Answers  


Categories