why java does not support multiple inheritance
Answer Posted / devesh dashora
Basically multiple inheritance is useful only in
polymorphism, so in java it can be done by interfaces, so
that java doesn't need to provide multiple inheritance
using extends keyword.
| Is This Answer Correct ? | 22 Yes | 34 No |
Post New Answer View All Answers
Explain when noclassdeffounderror will be raised ?
What is meant by singleton class?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Explain the access modifiers for a class, method and variables?
What are the parts of a method?
Give an example of use of pointers in java class.
What is the ==?
What is use of valueof () in java?
Can sleep() method causes another thread to sleep?
Can I declare class as static or private?
What state is a thread in when it is executing?
Which programming language is most secure?
Does sprintf allocate memory?
What are the four corner stones of oop?
What is difference between adapter class and listener?