Is java supports multiple inheritance? explain?
Answer Posted / kash
Two types of inheritance in Java:
Class inheritance : A sub class can have only one base class ( Single inheritance). Although the sub class can itself be a base class to another sub class ( Multi level inheritance).
Interface inheritance: interface allows multiple classes to implement abstract methods defined on it ( so supports multiple inheritance)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the generic class?
What are methods and how are they defined?
Is singleton set an interval?
Is java a digit method?
What is the purpose of the system class in java programming?
What is ctrl m character?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
How do you decide when to use arraylist and linkedlist?
What do you mean by composition in java?
What does a void function return?
What lambda means?
Explain about the interpreter in java?
Give the hierarchy of inputstream and outputstream classes.
Can we have try block without catch block?
Can a class declared as private be accessed outside it’s package?