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 are white spaces in java?

0 Answers  


What is assembly condition codes?

0 Answers  


How to make a class immutable?

15 Answers   Bosch, TSYS,


what is actual real time using of oops concepts in projects(Interface,polymorphism.abstraction.........)

2 Answers  


Can you have a constructor in abstract class?

18 Answers   HCL,






What is bigger kb or mb?

0 Answers  


Why is java called java?

0 Answers  


What do you understand by a Static Variable?

0 Answers   CGI,


1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?

2 Answers   RBS,


Explain the difference between transient and volatile in java?

0 Answers  


Differences between external iteration and internal iteration?

0 Answers  


When should we create our own custom exception classes?

0 Answers  


Categories