线程的考题,谁给答案并解释?
1. class MyThread extends Thread {
2. public void run() { System.out.println(“AAA”); }
3. public void run(Runnable r) { System.out.println(“BBB”); }
4.
5. public static void main(String[] args) {
6. new Thread(new MyThread()).start();
7. }
8. }
What is the result?
A. AAA
B. BBB
C. Compilation fails.
D. The code runs with no output.
2. public void run() { System.out.println(“AAA”); }
3. public void run(Runnable r) { System.out.println(“BBB”); }
4.
5. public static void main(String[] args) {
6. new Thread(new MyThread()).start();
7. }
8. }
What is the result?
A. AAA
B. BBB
C. Compilation fails.
D. The code runs with no output.
...全文
相关推荐
java程序设计之网络编程第二版课后习题答案
java程序设计之网络编程第二版课后习题答案,完全答案,很好的参考材料,
Java常用类String的面试题汇总(java面试题)
主要介绍了Java常用类String的面试题汇总,非常不错,具有参考借鉴价值,需要的朋友可以参考下
程序员历年考题与答案.rar
程序员历年考题与答案.rar程序员历年考题与答案.rar程序员历年考题与答案.rar
为公司编写了一份JAVA考题。
博文链接:https://starblur.iteye.com/blog/213790
软件设计师1990~2006年考题及答案
包含1990~2006年所有的软件设计师考试题目及答案,非常详细,希望对你们复习软设有所帮助


Java SE
