What happens when you call join() on another thread in Java multiple times
- User
What happens when you call join() on another thread in Java multiple times
- Assistant
In Java, calling
join()on a thread multiple times is perfectly legal. When you calljoin()on a thread, it means that the calling thread (i.e., the thread that executes thejoin()method call) will wait for the specified thread to finish executing before continuing.