LearningNotes icon indicating copy to clipboard operation
LearningNotes copied to clipboard

vector明明源码里实现了Serializable接口,却说没有实现

Open shoneworn opened this issue 7 years ago • 0 comments

原文:Vector没有实现Serializable接口,因此它不支持序列化,实现了Cloneable接口,能被克隆,实现了RandomAccess接口,支持快速随机访问。 后面的源码里: public class Vector<E>
extends AbstractList<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable
这弄的

shoneworn avatar Aug 07 '18 03:08 shoneworn