面向对象-对象实例化2 代码 public class Object01 { public static void main(String[] args) { Person a = new Person(); a.age = 10; a.name = "小明"; Person b ; b=a; System.out.println(b.name); b.age = 200; b = null; System.out.println(a.age); System.out.println(b.age); } } 1.初始时候的内存图 2.b=null 后的内存图 3.预计结果 4.运行结果