aspose file tools
The moose likes Beginning Java and the fly likes about toString() method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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 agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: about toString() method
 
Similar Threads
ArrayList class
Strings....
Why I get the List content when I print the List object?
What's the difference in this case? (so basic)
toString method confusion.