The Zen of Java Programming.
Originally posted by M Krishnan:
>>the valueOf method returns instances from the cache whereever...
This is true for other primitives also such as char, short,byte, int and long, aslong as the value is between -128 to +127.
SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
Head first Servlet and JSP
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>