Topic: 一个令我不解的问题 |
Print this page |
1.一个令我不解的问题 | Copy to clipboard |
Posted by: rocketApp Posted on: 2004-09-16 11:13 public class METhread extends Thread { public static void main(String[] args){ METhread t= new METhread(); Thread x = new Thread( t ); x.start(); } public void run(){ for(int i=0;i<3;i++){ System.out.print( i + ".."); } } } METhread t = new METhread(); Thread x = new Thread( t ); 看看JAVA API Thread 没有以线程子类为参数的构造函数,但是上段代码却可以执行?请帮我诊断一下 |
2.Re:一个令我不解的问题 [Re: rocketApp] | Copy to clipboard |
Posted by: Jove Posted on: 2004-09-16 11:21 Thread implements Runnable |
3.Re:一个令我不解的问题 [Re: rocketApp] | Copy to clipboard |
Posted by: rocketApp Posted on: 2004-09-16 12:01 Thank you |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |