基本类型:byte、short、char、int、long、boolean。 栈
包装类 :Byte、Short、Character、Integer、Long、Boolean。 堆 ,类
Class a= new Class();a叫实例,实例在栈中,栈,线程私有的
对象,对象在堆中,堆共有的
参考原文
https://www.bbsmax.com/A/nAJvVKRaJr/
https://www.cnblogs.com/xiaozhang666/p/12950488.html