This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes toString( ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "toString( ) " Watch "toString( ) " New topic
Author

toString( )

Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Hi all,
Im trying to pass a class thru a socket and it will only work if I remove my toString( ) method.
Does anybody know of any issue in using the toString( ) method in a Serializable class ?
Thx


Giselle Dazzi<br />SCJP 1.4
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
Hi Giselle
This doesn't sound logical. Can you please post the exception or error you might be getting?
Thanks!
Maulin
Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Yeah, you are right. It was something wrong I was doing. Thanks !
 
wood burning stoves
 
subject: toString( )