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 are the difference between composition and inheritance in java?

488


How do you sort in ascending order in java?

499


Is 0 true or false in java?

496


What do you know about the garbate collector?

581


What is void data type?

556






What is the difference between hashmap and hashtable? What is an interface?

474


can I implement my own start() method? : Java thread

524


Can an interface implement another interface?

544


Give some features of interface?

562


Can you access the private method from outside the class?

478


What does the exclamation mark mean in java?

570


What is java object name?

529


How do constructors use this() and super()?

513


What does += mean in java?

549


Is there a sort function in java?

549