java Clone

http://www.java-cn.com/zhuanti/technology_detail.jsp?id=4739

public class User implements Cloneable{  //深复制

 String name;
 User user;

 public Object clone() throws CloneNotSupportedException {
  return (User)super.clone();
 }

}

你可能感兴趣的:(java,jsp)