| 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
|
 |
 |
|
|
subject: about toString() method
|
|
|