When java converts int to Integer, it performs autoboxing using valueOf method. This method internally returns it from IntegerCache class. IntegerCache is an internal class in Integer to maintain the cache from -128 to 127.
We can increase the cache high value using JVM arguments -XX:AutoBoxCacheMax=256
On this page of the site you can watch the video online Java Tricky Program 6 - IntegerCache and Autoboxing with a duration of hours minute second in good quality, which was uploaded by the user Diyansh IT Services 11 January 2016, share the link with friends and acquaintances, this video has already been watched 7,109 times on youtube and it was liked by 74 viewers. Enjoy your viewing!