Please check this out:
Ok, so i know the rules about passing a primitive and an object refernce to a method. But str is a reference to a
String object, so wouldn't line 2 modify the state of the object refered to by str at line one.
Or does get treated like a literal value?
Cheers,
Marzo.
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!