Wrapper Classes


 

Wrapper Classes

In this SCJP topic ,you will learn about Wrapper Class.

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

Ads