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

Is vector ordered in java?

546


What is printwriter in java?

527


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

507


Can you instantiate the math class?

608


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1614






What are voids?

547


Can we serialize arraylist in java?

554


What do you mean by an object in java?

641


What is the purpose of the file class in java programming?

536


How many classes can any class inherit java?

516


What are the principle concepts of oops?

546


Can a serialized object be transferred via network?

523


Why is flag used in java?

558


What are the kinds of polymorphism?

622


What is bom encoding?

567