what is a wrapper object
A type wrapper in Java is a class that allows you to use primitives as objects. If you want to create a LinkedList of Integers, for example, using LinkedList<int> will give you a compile error. A wrapper class is a class whose object wraps or contains a primitive data type. When we create an object to a wrapper class, it contains a field and in this field, we can store a primitive data type. In other words, we can wrap a primitive value into a wrapper class object. For example, if we create an object of Character wrapper class, it contains a single field char and it is possible to store a character like 'A' there. So, character is a wrapper class of char data type.
A type wrapper in Java is a class that allows you to use primitives as objects. If you want to create a LinkedList of Integers, for example, using LinkedList<int> will give you a compile error. Instead, you have to use the wrapper class Integer (e.g. LinkedList<Integer>)