map中放的东西是引用还是对象

引用 我们写个例子 1. 新建个 User 对象 public class User{ private String name; public User(String name){ this.name = name; } public String getName(){ return name; } public void setName(String name){ this.name = name; } } 2. public static void main(String[] args){ User user = new User("feil...