多选题 Given:
3. class Wanderer implements Runnable {
4. public void run() {
5. for(int i = 0; i < 2; i++)
6. System.out.print(Thread.currentThread() .getName() + " ");
7. } }
8. public class Wander {
9. public static void main(String[] args) {
10. Wanderer w = new Wanderer();
11. Thread t1 = new Thread();
12. Thread t2 = new Thread(w);
13. Thread t3 = new Thread(w, "fred");
14. t1.start(); t2.start(); t3.start();
15. } }
Which are true? (Choose all that apply.)
【正确答案】 C
【答案解析】