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


Please Help Members By Posting Answers For Below Questions

Why can't we make a class private in java?

539


Where we write javascript code in html page?

567


How to sort an array from smallest to largest java?

548


What are the differences between checked exception and unchecked exception?

531


Can we increase array size dynamically in java?

517






How do you generate random numbers in java?

520


What is the protected method modifier?

563


Why is inheritance used in java?

611


How do you sort data in java?

527


What are the important features of Java 9 release?

538


Does importing a package imports its sub-packages as well in java?

554


hr interview how many minutes asking question

1571


Can you tell me range of byte?

566


What is e java?

561


What is java virtual machine? Explain

571