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

give an example for encapsulation?

1 Answers   Aspire,


Which class should you use to obtain design information about an object

2 Answers  


how to make hashmap object as synchronized object?

2 Answers   BOB Technologies,


What are keywords give examples?

1 Answers  


How do you sing an Applet ?

1 Answers  


write a program to create an arraylist with string(add,remove) operation.and value should be enter through keyboard.

0 Answers   Axcend,


class test { private static void main(String []adsf) { } } explain me that the above code is error or exception

3 Answers  


Can we have multiple classes in single file ?

1 Answers  


Is void a type?

1 Answers  


When should we create our own custom exception classes?

1 Answers  


What is the use of parse function in java?

1 Answers  


How can I right-justify a string?

1 Answers   Aspire, Infogain,


Categories