Home Tutorial Java Certification Wrapper Classes

 
 

Wrapper Classes
Posted on: July 3, 2010 at 12:00 AM
In this SCJP topic ,you will learn about Wrapper Class.

Primitive Wrapper Class

In this section you will learn about Wrapper classes and all the methods that manipulate data and allows to operate a certain work.

Wrapper class is a wrapper around a primitive data type. It represents primitive data types in their corresponding class instances e.g. a boolean data type can be represented as a Boolean class instance. All of the primitive wrapper classes in Java are immutable i.e. once assigned a value to a wrapper class instance cannot be changed further.

For more details click on the following link.

Wrapper Classes

Insert an element with the add(int, Object) method  

Insert an object with the add(Object) method

Insert an array list of objects with addAll(ArrayList) method 

To Retrieve a Particular Object From an ArrayList 

Convert an Integer type object to a String object

Retrieve the dynamic capacity of a list

Remove a value with remove() method

Replace an object with set(int, Object) method

Related Tags for Wrapper Classes:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.