InterviewSolution
Saved Bookmarks
| 1. |
What’s the purpose of the join() method? |
|
Answer» join() method is generally used to pause the EXECUTION of a current THREAD UNLESS and until the specified thread on which join is called is dead or COMPLETED. To stop a thread from running until another thread gets ended, this method can be used. It joins the start of a thread execution to the end of another thread’s execution. It is CONSIDERED the final method of a thread class. |
|