Can a class be subclass of itself?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of methods in java?

586


I don’t want my class to be inherited by any other class. What should I do?

587


Why is the main method static?

610


Why java is call by value?

556


Is alive in java?

515






How can you set an applet’s height and width as a percentage?

525


What value is a variable of the string type automatically initialized?

621


Is a class subclass of itself?

616


Why string is immutable or final in java

638


what is the swingutilities.invokelater(runnable) method for? : Java thread

559


Name few java util classes introduced with java 8 ?

514


What is int argc char * argv?

576


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

513


What is public static?

504


Garbage collection in java?

609