在Java代码中,常常会使用到这样的类的声明实例化: Person per = new Person(); //这其实是包含了两个步骤,声明和实例化 Person per = null; //声明一个名为Person类的对象per per = new Person(); // 实例化这个per对象 声明 指的是创建类的对象的过程: 实例化 指的是用关键词new来开辟内存空间. 它们在内存中的划分是这样的: 那什么是栈内存(heap)和栈内存(heap)呢? 栈内存: 在函数中定义的一些基本类型的
BSS, block start segment, static memory, to store the global data which are not initialized. DATA, data segment, static memory, to store the global initialized variables. TEXT, code segment to store the program code. HEAP, dynamic memory segment to s