移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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?()

发布日期:2022-07-06

Given that c is a reference to a valid java.io.Con...
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.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!