最病 A Java Object Serialization --Example 9 a Writing to an object stream l/ Serialize today's date to a file FileOutputStream f new FileOutput Stream(tmp") Objectoutput s= new ObjectoutputStream(t) s writeobject( Today) s writeobject(new DateD) S flush Institute of Computer Software 2021/1/28 Nanjing UniversityJava Object Serialization -- Example Writing to an object stream 2021/1/28 Institute of Computer Software Nanjing University 9 // Serialize today's date to a file. FileOutputStream f = new FileOutputStream("tmp"); ObjectOutput s = new ObjectOutputStream(f); s.writeObject("Today"); s.writeObject(new Date()); s.flush();