jdk自带Object.clone()需要继承Cloneable接口重写clone()方法 分深克隆和浅克隆 String默认指向常量池,浅克隆能拷贝,但如果是new String(),则需要深克隆T t = (T)tt.clone();