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
Differentiate between stringbuffer and stringbuilder in java.
Explain what access modifiers can be used for variables?
How to disable caching on back button of the browser?
What steps are taken when the OS shifts from one-thread execution to another?
Why do people says “java is robust”?
What does mean in regex?
What do you understand by abstract classes?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is int lol?
Explain polymorphism citing an example.
What is parseint?
Explain JMS in detail.
What is an empty list in java?
What is meant by nested loop?
Why is a string immutable?