Разница между боксом и распаком в Java
/*
1. In boxing, the value stored on the stack is copied to the object stored
on heap memory, whereas unboxing is the opposite.
2. In Unboxing, the object's value stored on the heap memory is copied
to the value type stored on stack.
*/
// Example:
int a = 10;
object obj = a; // boxing
int b = (int) ob; // unboxing
Tiny Coders