JYjinyoung.dev
← Back to Blog

Boxing and unboxing

Object format is reference type, It will save to heap
Int and Double format is value type, It will save to stack

if value data to save heap data containging box , it is boxing, In the opposite case, unboxing is the case of unpacking the data in the box and using it as a value