单项选择题
已知: 那么结果为?()
A.A m B.B m C.B m A m D.编译错误
A.FocusListener B.ActionListener C.WindowListener D.ItemListener
A.public static finalB.public finalC.public staticD.public abstract
class ThreadExcept implements Runnable { public void run() { throw new RuntimeException("exception "); } public static void main(String [] args) { new Thread(new ThreadExcept()).start(); try { int x = Integer.parseInt(args[0]); Thread.sleep(x); System.out.print("main "); } catch (Exception e) { } } } 和命令行: java ThreadExcept 1000 哪一个是结果?()
A. main B. 编译失败 C. 代码运行,但没有输出 D. main java.lang.RuntimeException:exception
微信扫一扫,加关注免费搜题