A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
toString() Method vs. Casting
Joined: Jul 11, 2001
Jan 10, 2003 09:23:00
Is there a difference between the 2 following line?
newString = someObject.toString()
String new String = (String)someObject;
GenRocket - Experts at Building Test Data
Joined: Sep 13, 2002
Jan 10, 2003 09:36:00
We had a discussion about this a few months ago, check it out
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
I agree. Here's the link:
subject: toString() Method vs. Casting
== Vs equals()
JTable-Getting Data out to db
Runtime vs Compile time
(String) vs toString()
String vs MyStringBuffer.toString()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015