Wrapper class in java are the Object representation of eight primitive types in java. All the wrapper classes in java are immutable and final.
Why all wrapper classes are final?
Essence: wrapper types need to be immutable to ensure uniform capabilities across all instances; immutablility being an important part of their known properties. And to guarantee immutability, the types need to be final.
Are wrapper classes important?
Why we need Wrapper Class
Wrapper Class will convert primitive data types into objects. The objects are necessary if we wish to modify the arguments passed into the method (because primitive types are passed by value). The classes in java. ... The object is needed to support synchronization in multithreading.