Byte,Short,Integer,Long,Boolean;Character为字符型:常量池数值范围为0~127
这5种包装类默认创建了数值[-128,127]的相应类型的缓存数据(静态的Integer数组对象),但是超出此范围仍然会去创建新的对象。 Double,Float两种浮点数类型的包装类则没有实现。
运行期间也可能将新的常量放入池中,这种特性被开发人员利用比较多的就是String类的intern()方法。
https://blog.csdn.net/qq_35495763/article/details/81106268