单项选择题X 纠错

A.Compilation succeeds.
B.Compilation fails due to multiple errors.
C.Compilation fails due to an error only on line 20.
D.Compilation fails due to an error only on line 21.
E.Compilation fails due to an error only on line 22.

参考答案:
查答案就用赞题库小程序 还有拍照搜题 语音搜题 快来试试吧
无需下载 立即使用

你可能喜欢

单项选择题

A.go in Goban go in Sente go in Sente
B.go in Sente go in Sente go in Goban
C.go in Sente go in Goban go in Goban
D.go in Goban go in Goban go in Sente

单项选择题

A.The code will compile without changes.
B.The code will compile if public Tree() { Plant(); } is added to the Tree class.
C.The code will compile if public Plant() { Tree(); } is added to the Plant class.
D.The code will compile if public Plant() { this("fern"); } is added to the Plant class.
E.The code will compile if public Plant() { Plant("fern"); } is added to the Plant class.

多项选择题

A.static final int[] a = { 100,200 };
B.static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }
C.static final int[] a = new int[2]{ 100,200 };
D.static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }

单项选择题

A.Line 26 prints "a" to System.out.
B.Line 26 prints "b" to System.out.
C.An exception is thrown at line 26 at runtime.
D.Compilation of class A will fail due to an error in line 6.

多项选择题

A.Foo.beta() is a valid invocation of beta().
B.Foo.alpha() is a valid invocation of alpha().
C.Method beta() can directly call method alpha().
D.Method alpha() can directly call method beta().

单项选择题

A.It is true that j==i.
B.It is false that j==i.
C.An exception is thrown at runtime.
D.Compilation fails because of an error in line 13.

单项选择题

A.true true
B.false true
C.true false
D.false false

单项选择题

A.35. DateFormat df = DateFormat.getDateFormat();42. d.setTime( (60 * 60 * 24) + d.getTime());
B.35. DateFormat df = DateFormat.getDateInstance();42. d.setTime( (1000 * 60 * 60 * 24) + d.getTime());
C.35. DateFormat df = DateFormat.getDateFormat();42. d.setLocalTime( (1000*60*60*24) + d.getLocalTime());
D.35. DateFormat df = DateFormat.getDateInstance();42. d.setLocalTime( (60 * 60 * 24) + d.getLocalTime());

多项选择题

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 ");

赞题库

赞题库-搜题找答案

(已有500万+用户使用)


  • 历年真题

  • 章节练习

  • 每日一练

  • 高频考题

  • 错题收藏

  • 在线模考

  • 提分密卷

  • 模拟试题

无需下载 立即使用

版权所有©考试资料网(ppkao.com)All Rights Reserved