网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
classAimplementsrunable(2.int&ensp

1.classAimplementsrunable(

2.inti;

3.publicvoidrun()(

4.try(

5.thread.sleep(5000);

6.i=10;

7.)catch(InterruptedExceptione){}

8.)

9.)

10.

11.publicclassTest{

12.publicstaticvoidmain(stringargs)(

13.try(

14.Aa=newA();

15.Threadt=newThread(a);

16.t.start();

17.

18.intj=a.i;

19.

20.)catch(Exceptione){}

21.)

22.)

Whichstatementalline17willensurethatj=10atline19?()


参考答案

更多 “ classAimplementsrunable(2.int&ensp 1.classAimplementsrunable(2.inti;3.publicvoidrun()(4.try(5.thread.sleep(5000);6.i=10;7.)catch(InterruptedExceptione){}8.)9.)10.11.publicclassTest{12.publicstaticvoidmain(stringargs)(13.try(14.Aa=newA();15.Threadt=newThread(a);16.t.start();17.18.intj=a.i;19.20.)catch(Exceptione){}21.)22.)Whichstatementalline17willensurethatj=10atline19?() ” 相关考题