Java does not support multiple inheritance.
how interface helps in the same?
Answer Posted / sachin ghare
It might be possible. Inherited both classes contain same method. And java by defualt polymorpic so at the time of compilation it will generate error.that's why. Interface contain astract methods so it Will manage stuff
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How do I get 64 bit java?
Explain what pure virtual function is?
What kind of variables a class can consist of?
Tell me about your ability to work under pressure
What is the applet security manager, and what does it provide?
Explain about static imports in java?
What are different types of constants?
How objects of a class are created if no constructor is defined in the class?
Can a class extend more than one class?
What is boolean data type in java?
What is return data type?
Which sort is best in java?
Why do we create public static method in java?
What is threaded programming and when is it used? : Java thread
What is abstract class constructor called?