data segment 中包括静态成员变量、字符串常量 栈 中包括 局部变量、形参、临时返回值 堆 中包括 new出的对象及属性 code segment 包括代码 转载于:https://www.cnblogs.com/lsswudi/p/11259405.html