单选题:在下列程序的空白处,应填入的正确选项是(  )。 Import java.io.*; Pulilc class Obje

  • 题目分类:Java
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
在下列程序的空白处,应填入的正确选项是(  )。
Import java.io.*;
Pulilc class ObjectStreamTest{
Publilc static void main(string args[])throws IOEx-
ception{
OhiectOutputStream oos=new OhjectOutputStream
(new FileOutputStream("serial.bin"));
Java.util.Date d=new Java.util.Date();
Oos(d);
ObjectInputStream ois=
new OhjectlnputStream(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.writerObject

参考答案:
答案解析:

Java中的基本数据类型int在不同的操作系统平台的字长是(  )。

Java中的基本数据类型int在不同的操作系统平台的字长是(  )。 A.不同的 B.32位 C.64位 D.16位

查看答案

3. I was glad to meet Jenny again, I didn't want to spend al

3. I was glad to meet Jenny again, I didn't want to spend all day with her.A.bu

查看答案

根据材料请回答Some people think that success is only for those with

根据材料请回答Some people think that success is only for those with talent or those wh

查看答案

A. confused B. gone C. tired D. drunk

A. confused B. gone C. tired D. drunk

查看答案

A. appointment B.excuse C. idea D. explanation

A. appointment B.excuse C. idea D. explanation

查看答案