问题:
public class Threads2 implements Runnable {
public void nun() {
System.out.println(”run.”);
throw new RuntimeException(”Problem”);
}
public static void main(String[] args) {
Thread t = new Thread(new Threads2());
t.start();
System.out.println(”End of method.”);
}
}
Which two can be results?()
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: Problem End of method.
public class Threads2 implements Runnable {
public void nun() {
System.out.println(”run.”);
throw new RuntimeException(”Problem”);
}
public static void main(String[] args) {
Thread t = new Thread(new Threads2());
t.start();
System.out.println(”End of method.”);
}
}
Which two can be results?()
● 参考解析
本题暂无解析
相关内容
相关标签