2011年9月30日
摘要: 下面是一段有关Java线程的题目。 以下是一个Java类的代码:1publicclassTest{23inta=0;4intb=0;5intx=0;6inty=0;78publicstaticvoidmain(String[]args)throwsInterruptedException{9Testtest=newTest();10test.run();11}1213privatevoidrun()throwsInterruptedException{14Threadth1=newThread(){15publicvoidrun(){16a=1;17y=b;18}19};20th1.st... 阅读全文
posted @ 2011-09-30 09:38 Forest Wang 阅读(232) 评论(0) 推荐(0) 编辑