Examples of Wrapper Class

This page discusses - Examples of Wrapper Class

Examples of Wrapper Class

In this page we are giving you the links of tutorials on wrapper classes in Java.

Wrapper classes are the classes present in the java.lang package. These classes provides object methods for the following eight primitive types:

1) byte
2) short
3) int
4) long
5) float
6) double
7) char
8) boolean

Following are the example of wrapper classes in Java.  

1.  Adding value through add(int, Object) method.

2.  Adding value through add(Object) method.

3.  Append all elements through addAll(ArrayList) method.

4.  To retrieve one of the element in the array through get() method.

5.  Change  a value through (Integer.toBinaryString()) method.

6.  Find total size through size() method.

7.  Remove a value through remove() method.

8.  Replace a  value through set(int, Object) method.


Share on Google+Share on Google+

Examples of Wrapper Class

Posted on: April 17, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles



Discuss: Examples of Wrapper Class  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image