Can a class be subclass of itself?

Answers were Sorted based on User's Feedback



Can a class be subclass of itself?..

Answer / avinash chand

In Java every class is a subclass of object class....

Is This Answer Correct ?    13 Yes 1 No

Can a class be subclass of itself?..

Answer / kimiya

is there any where to have write and exacte answers ?
in my opinion its not logical...why shoud a class extends
itself??...
but i know when ever someone asks a question like this
answer is yes and he like to answer why..!!?

Is This Answer Correct ?    1 Yes 0 No

Can a class be subclass of itself?..

Answer / diganta kumar

yes .thing is that the two class with same name will be
present in different package,then the class can extend the
same class.

Is This Answer Correct ?    2 Yes 2 No

Can a class be subclass of itself?..

Answer / nagarjuna

Yes, every class as a subclass of itself.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

how to create multithreaded program? Explain different ways of using thread? : Java thread

0 Answers  


Can an unreachable object become reachable again?

3 Answers  


Why do we need hashmap in java?

0 Answers  


what is the difference between System.exit() and System.exit(1)?

1 Answers   eClinical Solutions, eClinical Works, eClinicalWorks,


what is custom tags with example?

3 Answers   Amdocs,






what is difference between global methods and local methods?

1 Answers  


Why use string handling in Java?

0 Answers   HCL,


What do bitwise operators do?

0 Answers  


What ide should I use for java?

0 Answers  


Why java is platform independent? Explain.

0 Answers  


What is the use of conditional statement?

0 Answers  


When we can access the static data member without creating the object what is the need of the object in java.

5 Answers   Airhub, ssinformatics,


Categories