how can be object class inherited to all class in a program
when java does not support multiple inheritance??

Answers were Sorted based on User's Feedback



how can be object class inherited to all class in a program when java does not support multiple i..

Answer / prasad

by using interface

Is This Answer Correct ?    16 Yes 6 No

how can be object class inherited to all class in a program when java does not support multiple i..

Answer / ashok yadav

A class always extends only one class. That is the Object
class or the class defined with the extends keyword. That
class in turn can extend also only one class until eventual
the Object class is reached.

Is This Answer Correct ?    4 Yes 0 No

how can be object class inherited to all class in a program when java does not support multiple i..

Answer / kumar

Actuly in above it is the case of multilevel inheritance.and obj clas is super class which is extended by other classes tht is tree structure i.e 1 - * form . Multiple inheritance is wher 1 class is having 2 or more base class at same time ie *-1. So it is not multiple it is hiricle inheritnce.

Is This Answer Correct ?    0 Yes 0 No

how can be object class inherited to all class in a program when java does not support multiple i..

Answer / pardeshi rahul

we can inherit by using Interfaces

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More Core Java Interview Questions

What is the difference between JDK and JVM?

0 Answers  


Why are the objects immutable in java?

0 Answers  


How can we create a synchronized collection from given collection?

0 Answers  


what is the use of private constructor in core java?

3 Answers   OnMobile, Satyam, Yash Technologies,


If a class is declared without any access modifiers, where may the class be accessed in java programming?

0 Answers  


What is internal iteration in java se 8?

0 Answers  


Suppose there is an array list [10,5,20,19,15,24].Print them in ascending & descending order in collection framework concept ???

2 Answers   Cognizant,


Do I need java on my pc?

0 Answers  


what is meant by Byte code concept in Java?

0 Answers   Aspire,


Can constructor be synchronized?

0 Answers  


What is the range of the char type?

3 Answers  


What does int argc char * argv [] mean?

0 Answers  


Categories