# Wrapper Class

&#x20;For each and every fundamental data type there exist a pre-defined class, Such predefined class is known as wrapper class. The purpose of wrapper class is to convert numeric string data into numerical or fundamental data.&#x20;

#### Why use wrapper classes ?&#x20;

We know that in java whenever we get input form user, it is in the form of string value so here we need to convert these string values in different different datatype (numerical or fundamental data), for this conversion we use wrapper classes.

![](https://106491783-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTW0eWU2biq082hmKEn%2F-LTkiVRU1Mx0Bj69Ocel%2F-LTkirjme5z9zLvARv4S%2Fimage.png?alt=media\&token=3de22a7e-1fd0-4b63-bfe3-045f8d53d138)

![](https://106491783-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTW0eWU2biq082hmKEn%2F-LTkiVRU1Mx0Bj69Ocel%2F-LTkiwfR5YQH2QtCIfVH%2Fimage.png?alt=media\&token=37e90599-bef0-4125-88d5-83aabceb8771)

![](https://106491783-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTW0eWU2biq082hmKEn%2F-LTkiVRU1Mx0Bj69Ocel%2F-LTkj-nNbW9g8a81oPKq%2Fimage.png?alt=media\&token=efbad157-af0e-487e-9c33-5a59c5a65210)

