问题 单项选择题

成语使用不当的一句是:

A.热爱是最好的老师,它可以远远胜过责任感,引导你向着某个方向猛攻,以至乐而忘返
B.这自然还不过是略图,叙事和写景胜于人物的描写,然而北方人民的对于生的坚强,对于死的挣扎,却往往已经力透纸背
C.这部电视剧大受欢迎,每晚黄金时间播放时万人空巷,人们都围在电视机旁津津有味地观看。
D.他的话完了,台下有几个人拼命地鼓掌,而更多的人却噤若寒蝉,面面相觑。

答案

参考答案:C

解析:本题考查成语的使用。“万人空巷”指“家家户户的人都从巷里出来了,多形容庆祝、欢迎等盛况”,不能用于形容街巷空无一人。

问答题 简答题
问答题

请完成以下程序,首先由一个类Example2_3实现Serializable接口,并有三个成员变量,分别为int型、double型和String型,可以用toString的方法显示这三个成员变量。在main方法中创建这个Example2_3的持久对象,根据用户在命令行输入的三个参数来设定其中成员变量的值。然后,将这个对象写入名为TheSerial.data的文件,并显示成员变量。最后从文件TheSerial.data中读出三个成员变量并显示出来。
注意:请勿改动main()主方法和其他已有语句内容,仅在横线处填入适当语句。
import java.io.*;
class TheSerial implements Serializable

private int intValue;
private double doubleValue;
private String string;
TheSerial()

intValue = 123;
doubleValue = 12.34;
string = "Serialize Test";

public void setDouble(double d)

doubleValue = d;

public void setInt(int i)

intValue = i;

public void setString(String s)

string = s;

public String toString()

return("int="+intValue+"double="+doubleValue+" string="+string);


public class Example2_3

public static void main(String argv[])

TheSerial e1 = new TheSerial();
TheSerial e2;
try

e1.setInt(Integer.parseInt(argv[0]));
e1.setDouble(Double.parseDouble(argv[1]));
e1.setString[argv[2]);

catch(Exception e)

e1.setString(e.getMessage));

System.out.println(e1);
try

FileOutputStream oS = new FileOutputStream("TheSerial.data");
ObjectOutputStream oIS = new ObjectOutputStream(oS);
______;

catch(IOException ioException)

System.out.println(ioException.getMessage());

try

FileInputStream iS = new FileInputStream("TheSerial. data");
ObjectInputStream oIS = new ObjectInputStream(iS);
______
System.out.println(e2);

catch(IOException ioException)

System.out.println(ioException.getMessage());

catch(ClassNotFoundException cnfException)

System.out.println(cnfException.getMessage());