题目内容

在下面程序的空白处,应填入的正确选项是 import java.io.*; public class ObjectStreamTest { public static void main(String args[])throws IOExeeption } ObjectoutputStream os=new ObjectOutputStream(new FileOutputStream("serial.bin")); java.util.Date d=new java.util.Date(); oos. ______(d); ObjectInputStream is=new ObjecttInputStream(new FileInputStream("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. write
C. BufferedWriter
D. writerObject

查看答案
更多问题

实行内部成本核算的事业单位,应当在无形资产的受益期内分期平均摊销,按照摊销额,借记“经营支出”科目,贷记“无形资产”科目。()

A. 正确
B. 错误

A.especially LatieB.for exampleC.thereforeD.not American

A. especially Latie
B. for example
C. therefore
D. not American

A.MostB.BothC.EitherD.None

A. Most
Both
C. Either
D. None

A.on the contraryB.in comparisonC.thoughD.in contrast

A. on the contrary
B. in comparison
C. though
D. in contrast

答案查题题库