Java中存在六种数据存储方式: 1.寄存器 2.堆栈 3.堆 4.静态存储 5.常量存储 6.非 RAM 存储 转载:https://www.cnblogs.com/leokou/articles/2070524.html