试题详情
- 单项选择题 现有: class ThreadBoth extends Threaa implements Runnable { public void run() (System.out.print("hi"); } public static voicl main (String [] args) { Thread tl=new ThreadBoth(): Thread t2 = new Thread (tl): tl.run(): t2.run(): } 结果为:()
A、 hi hi
B、 hi
C、编译失败
D、运行时异常被抛出
- A
关注下方微信公众号,在线模考后查看
热门试题