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

What are autoboxing and unboxing? When does it occur?

733


How do you achieve singleton?

748


Which class is the superclass for every class in java programming?

799


What are the types of relation?

831


What happens when I use / and % with a negative numerator?

809


What is the mapping mechanism used by java to identify IDL language?

819


What is the range of the short type?

802


Write a java program to count the number of words present in a string?

757


Explain about main() method in java ?

825


What are parsers? Dom vs sax parser.

809


Can you inherit a constructor java?

845


Explain an intermediate language?

751


Explain about field hiding in java?

737


Which is the best sorting technique in java?

771


What is the use of flag?

879