Unboxing Java Boxing
There are two types in Java Programming Language. The first is primitive type such as int, double,
and boolean
. The second is the reference type such as String, List,
and Set
. Every primitive type has a corresponding reference type, called a boxed primitive.