integer interview questions.

 

The above results are output: true

         true

-----------------------------------------------------

         false

         true

Because the byte value range is -128-127, if autoboxing within the ranges will not create objects, but taken from the constant pool, if more than byte ranges will re-create the object.   

Guess you like

Origin www.cnblogs.com/wangffeng293/p/11772727.html