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
Can I import same package/class twice?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
Write a program to calculate factorial in java?
What is a singleton class in Java?
Is it necessary for the port addresses to be unique? Explain with reason.
What is the use of singleton?
What is the difference between length and size in java?
Why collection is called framework in java?
What is the difference between static method and instance method in Java?
Why is a constant variable important?
Why stringbuffer is faster than string?
What is nullpointerexception in java?
Why hashcode is used in java?
Can we have any code between try and finally blocks?
Explain the difference between jdk, jre, and jvm?