File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes WRAPPER CLASS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "WRAPPER CLASS" Watch "WRAPPER CLASS" New topic
Author

WRAPPER CLASS

chintan ramavat
Ranch Hand

Joined: Sep 15, 2006
Posts: 134
hello ranchers

i want to know parse xxx() in detail, to me it just assigning value to the declared primitive, the only difference between parse and value of() is that parse works on primitive and valueof() works on Object.


so can anybody tell me then what's the bottom line of having parse, we could have direct assignment.
Javier Sanchez Cerrillo
Ranch Hand

Joined: Aug 02, 2006
Posts: 152
I think apart from a possible performance issue since autoboxing, there is no reason for both methods to exist.


SCJP 5.0 95%<br /> <br />The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.
 
wood burning stoves
 
subject: WRAPPER CLASS
 
Similar Threads
Integer.MIN_VALUE
parseXxx and valueOf
Pass by Reference and pass by primitve value
JAXB marshaller - neglect integer fields that are not set
EL - converting types for map key