This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: about toString() method
 
It's not a secret anymore!