现有: 1. class ThreadBoth extends Threaa implements Runnable { 2. 3.public void run() (System.out.print("hi"); } 4. 5.public static voicl main (String [] args) { 6.Thread tl=new ThreadBoth(): 7.Thread t2 = new Thread (tl): 8. tl.run(): 9. t2.run(): 10. } 11. } 结果为: