问题 单项选择题

在编译Java程序时,用于指定生成.class文件位置的选项是【 】

A.-g

B.-d

C.-verbose

D.-nowarn

答案

参考答案:B

解析:javac.exe是Java编译器,能将源程序代码编译成字节码,以.class扩展名存入Java工作目录中。它的命令格式为:javac[选项]文件名。其中[选项]包括几下几个: //-g 输出文件中加行号以及局部变量信息,为调试程序时用。 //-o 对类文件进行优化编译。 //-nowarn 关闭警告信息,只显示错误信息。 //-verbose 显示源代码文件和字节码文件的相关信息。 //-d<目录> 指定存放生成的类(.class)文件的位置 根据上述介绍可知,在编译Java程序时,可以通过选项-d来指定生成的.class文件的位置。因此,本题的正确答案是B。

单项选择题

A recent poll indicated that half the teenagers in the United States believe that communication between them and their parents is (1) and further that one of the prime causes of this gap is (2) listening behavior. As a(an) (3) in point, one parent believed that her daughter had a severe (4) problem. She was so (5) that she took her to an audiologist to have her ear tested. The audiologist carefully tested both ears and reported back to the parent:"There’s nothing wrong with her hearing. She’s just (6) you out. "

A leading cause of the (7) divorce rate (more than half of all marriages end in divorce) is the failure of husbands and wives to (8) effectively. They don’t listen to each other. Neither person (9) to the actual message sent by the other.

In (10) fashion, political scientists report that a growing number of people believe that their elected and (11) officials are out of (12) with the constituents they are supposedly (13) Why Because they don’t believe that they listen to them. In fact, it seems that sometimes our politicians don’t even listen to themselves. The following is a true story: At a national (14) conference held in Albuquerque some years ago, then Senator Joseph Montoya was (15) a copy of a press release by a press aide shortly before he got up before the audience to (16) a speech. When he rose to speak, (17) the horror of the press aide and the (18) of his audience, Montoya began reading the press release, not his speech. He began, "For immediate release. Senator Joseph M. Montoya, Democrat of New Mexico, last night told the National... " Montoya read the entire six page release, (19) with the statement that he "was repeatedly (20) by applause.

3()

A.case

B.example

C.lesson

D.suggestion

判断题