File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes wrapper classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "wrapper classes" Watch "wrapper classes" New topic

wrapper classes

Venkat Ramsimha
Ranch Hand

Joined: Dec 28, 2004
Posts: 127
hello everybody

Can anybody tell me what are 'wrapper classes ' and there usage in the program.also within the wrapper classes i would like to know what are the methods defined.can anybody describe within the program the implementation of the defined wrapper methods.

looking forward....

carl(in hunt of SCJP1.4)
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
int is a datatype & for this wrapper class is Integer .

int i = 7 ; // integer datatype
Integer i1 = new Integer(7); // integer object
Jay Pawar
Ranch Hand

Joined: Aug 27, 2004
Posts: 411
Which book are you studying for the exam ? K&B book has really nice information on wrapper classes.

I hope you are not the West Indies cricket bowler. just kidding
[ January 08, 2005: Message edited by: Jay Pawar ]

Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
"I hope you are not the West Indies cricket bowler."

Well, that could explain a lot of things...

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: wrapper classes
jQuery in Action, 3rd edition