Does Java support multiple Inheritance?

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


Please Help Members By Posting Answers For Below Questions

What is return null in java?

505


What is singletonlist in java?

503


What is jvm? How its run?

655


What is wrapper class example?

531


Which method must be implemented by all threads?

717






What is an 8 bit word?

586


What is the format specifier?

510


What is Java Annotations?

553


What is a instance variable?

579


Can we call thread start () twice?

510


Explain OOPs concept.

641


Which of the following is not an isolation level in the JDBC

1606


Can a class have a static inner class?

600


explain what is transient variable in java?

618


What does opcode mean?

527