Does Java support multiple Inheritance?
Answers were Sorted based on User's Feedback
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 |
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 |
What is JFC?
Is java written in c?
Can we declare variables inside a method as Final Variables?
What is runtime locatable code?
What is java reflection?
What are static blocks in java ?
what is meant wrapper classes?
What do you mean by constructor?
What is application system?
Write a program to show whether a graph is a tree or not using adjacency matrix.
To obtain design information about an object, which class in used?
What is the purpose of declaring a variable as final?