Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Joined: Nov 06, 2000
Wrapper classes are used to wrap primitive values so that they can be used as objects, if there is a need to. Such as inserting in Collections, etc.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Feb 24, 2001
Bosun gave a nice definition. Here's an example: You've probably seen: int x; This creates the integer variable 'x'. But you could also use an Integer wrapper, so that 'x' is treated as an object: Integer x = new Integer(); From the Sun documentation: "The Integer class wraps a value of the primitive type int in an object. An object of type Integer contains a single field whose type is int. " There's a wrapper class for each primitive type.
Susan [This message has been edited by Susan Delph (edited May 06, 2001).]