adspace


all are saying java doesn't support multiple inheritance but
by default Object class is super class for all the user
defined classes and we can extend atmost one class so each
class can extend more than one class so java supports
multiple inheritance?i am confused with this,pls any one
explain me.

Answer Posted / aruna raman

Yes-Java does not support multiple inheritence but supports
Multi level inheritence.
A class can extends only one class(which also extends from
object class), So this a multi level inheritance not
multiple inheritence.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between equals() and == in java?

1038


What are the differences between heap and stack memory in java?

1136


What is the difference between break and continue statements?

1124


What is a classloader in java?

1087


Realized?

2260


Write a program to find the whether a number is an Armstrong number or not?

1096


What is an object in java and how is it created?

1139


What is java string pool?

1080


Write a program to print count of empty strings in java 8?

1085


What is parsing in java?

1039


How to create a base64 decoder in java8?

1136


Explain public static void main(string args[]) in java.

1074


Is minecraft 1.15 out?

1045


Differentiate between static and non-static methods in java.

1126


How to sort array in descending order in java?

994