当前位置:OCJP(310-065)题库

问题:

[单选]

Given that c is a reference to a valid java.io.Console object, and:
11.String pw = c.readPassword("%s", "pw: ");
12.System.out.println("got " + pw);
13.String name = c.readLine("%s", "name: ");
14.System.out.println(" got ", name);
If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()

A . An exception is thrown at runtime
B . pw: fido got fido name: bob got bob
C . pw: got fido name: bob got bob
D . Compilation fails.

超常负荷原则 目前我国社会,教师职业与其他行业相比相对比较松散和半专业化,这种状况已影响到教师职业的健康发展,请你谈谈现代社会和现代教育中,应如何走教师专业化道路?也就是说教师专业化应体现在哪些方面? 标准筒刀和封堵筒刀在用途上是()的。 相似。 不同。 相反。 一样。 Whichtwo scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?() When using versions of Java technology earlier than 5.0.。 When sharing a StringBuffer among multiple threads.。 When using the java.io class StringBufferInputStream.。 When you plan to reuse the StringBuffer to build more than one string.。 Enitiation of separate design processes to the separation of user。 多次给药方案中,缩短给药间隔可()。 使达到CSS的时间缩。 提高CSS的水平。 减少血药浓度的波动。 延长半衰期。 提高生物利用度。

Given that c is a reference to a valid java.io.Console object, and:
11.String pw = c.readPassword("%s", "pw: ");
12.System.out.println("got " + pw);
13.String name = c.readLine("%s", "name: ");
14.System.out.println(" got ", name);
If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()

参考答案:

  参考解析

本题暂无解析

在线 客服