阿摩線上測驗 登入

試題詳解

試卷:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081

科目:OJCP(SCJP)

複選題
154 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? (Choose two.)
(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 "); 
(AB) char[] c = c.readLine("%s", "name ");
正確答案:登入後查看