Page: 4
9. Multi-Threading
Q: 14 Click the Task button.
Solution: 1.started 2.ran 3.interrupting 4.ended 5.(no more out put) 15 Click the Exhibit button. What is the output if the main() method is run?
A. 4 B. 5 C. 8 D. 9 E. Compilation fails. F. An exception is thrown at runtime. G. It is impossible to determine for certain. Answer: D Q: 16 Click the Task button. Solution: java.lang.object ------------------------------- wait( ); notify( ); java.lang.Thread--------------------------------run(), sleep( ); start( ); join ( )
Page: 4
1
2
3
4
5
6
7
8
9
10
|