java本质——内存分布 1、Code Segment ——代码区 ——存放代码; 2、Data Segment ——变量区 ——存放静态变量,字符串变量等; 3、Stack ——————栈 ——存放局部变量; 4、Heap ——————堆 ——存放说有"new"出来的;