Java 基本API
Object java.lang.Object
?
?
ArrayList java.util.ArrayList
?
public Object clone(){
try{
ArrayList<E> v = (ArrayList <E>) supper.clone();
//?E
//super.clone()
v.elementData = (E[]) new Object[Size];
System.arraycopy(elementData, 0, v.elementData, 0, size);
// new ?
v.modCount = 0;
return v;
} catch (CloneNotSupportedException e){
throw new InternalError();
}
}
?
?
native
transient