单选题

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.

正确答案

来源:www.examk.com

答案解析

相似试题
  • Given: 11.String test = "This is a test"; 12.String[] tokens = test.split("/s"); 13.System.out.println(tokens.length); What is the result?()

    单选题查看答案

  • Given: 11.String test = "a1b2c3"; 12.String[] tokens = test.split("//d"); 13.for(String s: tokens) System.out.print(s + " "); What is the result?()

    单选题查看答案

  • Given: What is the result?()

    单选题查看答案

  • Given: Which statement is true?()

    单选题查看答案

  • Given: What is the result?()

    单选题查看答案

  • Given: What is the result?()

    单选题查看答案

  • Given: Which three are true?()

    多选题查看答案

  • Given: What is the result?()

    单选题查看答案

  • Given: Which statement is true?()

    单选题查看答案