阿摩線上測驗 登入

試題詳解

試卷:104年 - SCJP 151-200#99330 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:104年 - SCJP 151-200#99330

年份:104年

科目:OJCP(SCJP)

170. Given: 
12. String csv = "Sue,5,true,3"; 
13. Scanner scanner = new Scanner(csv); 
14. scanner.useDelimiter(","); 
15. int age = scanner.nextInt(),
 What is the result?
(A) Compilation fails.
(B) After line 15, the value of age is 5.
(C) After line 15, the value of age is 3.
(D) An exception is thrown at runtime.
正確答案:登入後查看