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

Is array size fixed in java?

0 Answers  


Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify

3 Answers   Ericsson,


Can we initialize the final blank variable?

0 Answers  


Is array synchronized in java?

0 Answers  


How do you decide when to use arraylist and linkedlist?

0 Answers  






When will we use class loader?

2 Answers  


What is method overloading in JAVA? Why is it not present in C ?

0 Answers   Akamai Technologies,


Is java 1.7 the same as java 7?

0 Answers  


what is the difference b/w design pattern and architecture

4 Answers   Covansys,


Which is bigger double or float?

0 Answers  


There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.

3 Answers  


Explain about the dynamic behavior of core java?

0 Answers  


Categories