深入剖析Java虚拟机内存模型 JVM整体架构 JVM整体架构如下: 通过编写代码来分析整个内存区域 public class Math { public static final Integer CONSTANT = 666; public int compute(){ int a = 1; int b = 2; int c = (a + b) * 10; return c; } public static void main(String[] args) { Math math = new…