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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "toString() Method vs. Casting" Watch "toString() Method vs. Casting" New topic
Author

toString() Method vs. Casting

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

Is there a difference between the 2 following line?
String newString = someObject.toString()
and
String new String = (String)someObject;
Thanks.
Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
We had a discussion about this a few months ago, check it out here


Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: toString() Method vs. Casting
 
Similar Threads
How to convert byte array into string array?
date format with MS Access database
Tech Word Game
WA #1.....word association
ResultSet to Array