问题: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方法,中止线程。
 |