ObjectInputStream和ObjectOutputStream
节点流、非缓冲流、顺序文件
读对象:类型名 read首字母大写类型名()
public final Object readObject() throws OptionalDataException, ClassNotFoundException, IOException
写对象:write首字母大写类型名()
public void writeObject(Object obj) throws IOException
写入的对象必须实现序列化接口:
序列化接口Serializable中没有抽象函数,因此序列化类是可实例化的类。
class ClassName implements Serializable{...}