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
Is vector ordered in java?
What is printwriter in java?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
Can you instantiate the math class?
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
What are voids?
Can we serialize arraylist in java?
What do you mean by an object in java?
What is the purpose of the file class in java programming?
How many classes can any class inherit java?
What are the principle concepts of oops?
Can a serialized object be transferred via network?
Why is flag used in java?
What are the kinds of polymorphism?
What is bom encoding?