在下列程序的空白处,应填入的正确选项是: import java.io.*; pulilc class ObjectStreamTest{ publilc static void main(string args[]) throws IOException{ ObjectOutputStream oos= new ObjectOutputStream (new FileOutputStream("serial.bin")); java.util.Date d= new Java.util.Date(); oos. ______ (d); ObjectInputStream ois= new ObjectInputStream(new FileOutputStream("serial.bin")); try{ java.util.date restoredDate = (java.util.Date) ois.readObject(); System.out.println ("read object back from serial.bin file:" + restoredDate); } catch (ClassNotFoundException cnf) { System.out.println ("class not found"); } }
A.WriterObject B.Writer C.BufferedWriter D.writeObject正确答案D