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
Can a class be private in java?
What is supplier in java?
What are thread priorities and importance of thread priorities in java?
Explain the selection sort algorithm and state its time complexity?
5 Coding best practices you learned in java?
What is a line break?
What is jrmp?
What is meant by class loader? How many types are there? When will we use them?
How do you read a char in java?
What is a function argument in java?
Can a static method be overridden in java?
What do you mean by JVM?
What are the new features in java 8?
What is an interface in java?
Is java se free?