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 print the below in java?thanks in advance.... * * * * * * * *

3 Answers  


What happens if we don’t override run method ?

0 Answers  


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

0 Answers  


Does variable declaration allocate memory?

0 Answers  


What is update method called?

0 Answers  






What is :: operator in java 8?

0 Answers  


What is passing parameters in java?

0 Answers  


What are constants and how to create constants in java?

0 Answers  


Why is stringbuffer faster than string?

0 Answers  


What is an i/o filter?

0 Answers  


What restrictions are placed on method overloading?

0 Answers  


how many ways we can serialize the java object?

2 Answers   Satyam,


Categories