InterviewSolution
Saved Bookmarks
| 1. |
Which of this method can be used to make the main thread to be executed last among all the threads?(a) stop()(b) sleep()(c) join()(d) call() |
|
Answer» Correct choice is (b) sleep() Explanation: By calling sleep() within main(), with long enough delay to ensure that all child threads terminate prior to the main thread. |
|