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
What is return null in java?
What is singletonlist in java?
What is jvm? How its run?
What is wrapper class example?
Which method must be implemented by all threads?
What is an 8 bit word?
What is the format specifier?
What is Java Annotations?
What is a instance variable?
Can we call thread start () twice?
Explain OOPs concept.
Which of the following is not an isolation level in the JDBC
Can a class have a static inner class?
explain what is transient variable in java?
What does opcode mean?