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
Why can't we make a class private in java?
Where we write javascript code in html page?
How to sort an array from smallest to largest java?
What are the differences between checked exception and unchecked exception?
Can we increase array size dynamically in java?
How do you generate random numbers in java?
What is the protected method modifier?
Why is inheritance used in java?
How do you sort data in java?
What are the important features of Java 9 release?
Does importing a package imports its sub-packages as well in java?
hr interview how many minutes asking question
Can you tell me range of byte?
What is e java?
What is java virtual machine? Explain