新闻资讯 > JAVA常见问题解答(十一)
                                                                                      
     【发表日期】:2007年9月13日   【出处】:思达网校    【作者】:思达网校   【阅读】:

问题:For what reasons might a thread stop execution?

A.  A thread with higher priority began execution.

B. The thread's wait() method was invoked. 

C. long methodOne( int c, long d ){}

D. The thread's pause() method was invoked.

E. methodOne( int c, long d ) throws FileNotFoundException{}

答案:A,B,C,E ?


回答
long methodOne( int c, long d ){}

线程的run方法没有执行任何操作,则执行过程立即结束,退出run方法,中止线程。

咨讯评论
相关连接
 
网校预告
联系方式
 免费咨询电话:1169865432

 电 话:023-65472523

 课程咨询:edu@staredu.net
 联系人:李老师 王老师
文章搜索: