通过new创建对象 会创建几个完全不相同的对象 实体类: package cn.xiaov.creatobject; public class Person { private String name; private int age; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age;