欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()

    A.String s = c.readLine();
    B.char[ ] c = c.readLine();
    C.String s = c.readConsole();
    D.char[ ] c = c.readConsole();
    E.String s = c.readLine("%s", "name ");
    F.char[ ] c = c.readLine("%s", "name ");

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题