可学答题网 > 问答 > OCJP(310-065)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given: 12.String csv =&ensp


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

  • ACompilation fails.
  • BAfter line 15, the value of age is 5.
  • CAfter line 15, the value of age is 3.
  • DAn exception is thrown at runtime.
参考答案
参考解析:
分类:OCJP(310-065)题库