java autoboxing and unboxing

The automatic unboxing is done at compile time, and the bottom layer is to call the method to complete the unboxing.

When Integer is compared with int (==), Integer will be automatically unboxed into int before comparison.

 

Guess you like

Origin blog.csdn.net/shanyaodou/article/details/129754328