1,对象流的概念:2,写对象的范例: 1,对象流的概念: 往文件中读或写对象; 2,写对象的范例: Person person = new Person("aa", 13); ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("G\\xxx\\person.txt")); oos.writeObject(person); oos.close();