单项选择题X 纠错

A.4321
B.0000
C.An exception is thrown at runtime.
D.Compilation fails because of an error in line 18.

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

你可能喜欢

单项选择题

A.Compilation will succeed for all classes and interfaces.
B.Compilation of class C will fail because of an error in line 2.
C.Compilation of class C will fail because of an error in line 6.
D.Compilation of class AImpl will fail because of an error in line 2.

单项选择题

A.Direction d = NORTH;
B.Nav.Direction d = NORTH;
C.Direction d = Direction.NORTH;
D.Nav.Direction d = Nav.Direction.NORTH;

单项选择题

A.hi hi
B.hi world
C.world world
D.Compilation fails.
E.An exception is thrown at runtime.

多项选择题

A.public class Circle implements Shape {private int radius;}
B.public abstract class Circle extends Shape {private int radius;}
C.public class Circle extends Shape {private int radius;public void draw();}
D.public abstract class Circle implements Shape { private int radius;public void draw();}
E.public class Circle extends Shape {private int radius;public void draw() {/* code here*/}}

单项选择题

A.Compilation fails.
B.An exception is thrown at runtime.
C.The code executes normally and prints "foo".
D.The code executes normally, but nothing is printed.

单项选择题

A.The output could be 5-1 6-1 6-2 5-2
B.The output could be 6-1 6-2 5-1 5-2
C.The output could be 6-1 5-2 6-2 5-1
D.The output could be 6-1 6-2 5-1 7-1

单项选择题

A.This code can throw an InterruptedException.
B.This code can throw an IllegalMonitorStateException.
C.This code can throw a TimeoutException after ten minutes.
D.Reversing the order of obj.wait() and obj.notify() might cause this method to complete normally.
E.A call to notify() or notifyAll() from another thread might cause this method to complete normally.

多项选择题

A.It is possible for more than two threads to deadlock at once.
B.The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
C.Deadlocked threads release once their sleep() method’s sleep duration has expired.
D.Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
E.It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
F.If a piece of code is capable of deadlocking, you cannot eliminate the possibility ofdeadlocking by insertinginvocations of Thread.yield().

多项选择题

A.java.lang.RuntimeException: Problem
B.run.java.lang.RuntimeException: Problem
C.End of method.java.lang.RuntimeException: Problem
D.End of method.run.java.lang.RuntimeException: Problem
E.run.java.lang.RuntimeException: ProblemEnd of method

赞题库

赞题库-搜题找答案

(已有500万+用户使用)


  • 历年真题

  • 章节练习

  • 每日一练

  • 高频考题

  • 错题收藏

  • 在线模考

  • 提分密卷

  • 模拟试题

无需下载 立即使用

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