Answer Posted / sadikhasan,meta
Java does not support multiple inheritance because it
creates a dimond problem.
if we want to implement multiple inheritance in java then we
use interfaces which support multiple inheritance.
e.g.
interface B
{
}
interface C
{
}
class A implements B,C
{
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Are static members inherited to sub classes?
Write a program to solve producer consumer problem in java?
What is variable explain?
What do you mean by byte code?
Do we need to manually write Copy Constructor?
What is finally in Java?
What is enhanced loop in java?
What is variable in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
What is the point of java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is the difference between JDK and JVM?
Define jre i.e. Java runtime environment?
Can a constructor have different name than a class name in java?
What is deserialization?