Can a class be subclass of itself?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by a Static Variable?

642


What 4 doubled?

554


Describe the syntax of multiple inheritance? When do we use such an inheritance?

593


What is the difference between dom and sax parser in java?

542


Does java initialize arrays to zero?

516






Where are global variables stored?

513


What is super constructor?

557


When a byte datatype is used?

575


What are the topics in core java?

545


What is string :: npos?

586


What is module in project?

524


what is daemon thread and which method is used to create the daemon thread? : Java thread

539


What is the full meaning of java?

544


What does method mean?

522


What do negative exponents mean?

554