aspose file tools*
The moose likes Beginning Java and the fly likes about toString() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "about toString() method" Watch "about toString() method" New topic
Author

about toString() method

Shaan patil
Ranch Hand

Joined: Dec 22, 2007
Posts: 58
Hi all,

We all know that , string class is declared a final. Then how is it possible to override the toString method in the throwable class ?


"You cannot change the truth but truth can change you "
Phani Burra
Ranch Hand

Joined: Dec 13, 2007
Posts: 52
The Throwable class doesn't override the toString() method of the String class but it overrides the toString() method of the Object class.
Shaan patil
Ranch Hand

Joined: Dec 22, 2007
Posts: 58
Hi Phani Burra ,

You are right , The toString() method of the "Object" class is overridden in the Throwable class.

Thanks
 
wood burning stoves
 
subject: about toString() method