What is mean by a wrapper class ?

What is mean by a wrapper class ?

The wrapper classes serve the two purpose:
 * It wraps the primitive to an object so that primitives can
 be used in the activities which are reserved only for the objects.
 * Converting primitives to and from String objects.
Java provides the Wrapper class for each of the primitives
in java. Some of these are: 
 * Boolean
 * Character
 * Byte
 * Short
 * Integer
 * Long
 * Float
 * Double


By:Jalees
Date:2012-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher