问题 填空题

在下列的代码段中填入一个适当的语句,使其表示为从输入流中能读取对象(注:FileInputStream的形参为“thetime”)。   File InputStream in= 【 】 ;   ObjectInputStream s=ObjectInputStream(in);   String today=(String)s.readObject( );   Date date=(Date)s.readObject( );

答案

参考答案:new FileInputStream("thetime");

解析:在Java语言的io包中的非字符输入流中,FileInputStream可对―个磁盘文件涉及的数据进行处理。读取数据时,一般情况下,BufferedInputStream和DataInputStream一起用。读取字节时,InputStreamReader以及BufferedReader一起用。题目中要考查如何创建FileInputStream类的对象:FileInputStream对象名=new FileInputStream(“参数”);。

填空题
单项选择题

The swine flu will probably return in force earlier than seasonal flu usually begins, federal health officials predicted Friday, saying they expected it to erupt as soon as schools open rather than in October or November.
The swine flu is still circulating in the United States, especially in summer camps, even though hot weather has arrived and the regular flu season ended months ago, "so we expect challenges when people return to school, when kids are congregating together," Dr. Anne Schuchat, director of respiratory diseases at the Centers for Disease Control and Prevention, said in a telephone news conference held jointly with vaccine experts from the Food and Drug Administration and the Department of Health and Human Services.
It is still unclear how many doses of a swine flu vaccine will be available by then, and officials have been reluctant to make firm predictions beyond saying that they expect tens of millions, rather than hundreds of millions, and they plan to distribute them to people who are the most vulnerable, like pregnant women and people who are the most likely to encounter the flu, like health care workers.
The number of doses available will depend on how fast seed strains grow, how much protection a small dose provides, and whether immune-system boosters called adjuvants are needed and prove to be safe; adjuvants are not used in American flu vaccines now.
Clinical trials testing those questions are expected to take another couple of months, said Dr. Jesse L. Goodman, director of the F. D.A.’s Center for Biologics Evaluation and Research.

Which of the following is the most infective to this disease
[A] A twelve-year old school boy.
[B] A twenty-seven year old athlete.
[C] A fifty-year old male gardener.
[D] A forty-seven year old female driver.


Assuming a swine flu vaccination campaign begins, it will be voluntary, Dr. Schuchat emphasized, but she "ply encouraged" pregnant women to get both a seasonal flu shot and a swine flu shot when they are available.
The C.D.C.has been closely following the disease in the Southern Hemisphere winter, and it is mimicking the patterns seen in the United States and Mexico in the spring, she said.
Most infections and most serious cases are in children and young adults, and those with underlying conditions, including pregnancy, are the most likely to die. Dr. Schuchat likened the spread’s unpredictability to that of popcorn: one city could see an explosion of cases and overwhelmed hospitals while another saw few.
Her most important message, she added, was that "the virus isn’t gone, and we fully expect there will be challenges in the fall. "