Which method is used to wait for a thread to finish execution?

Last Updated :
Discuss
Comments

Which method is used to wait for a thread to finish execution?


wait()

sleep()

join()

yield()

Share your thoughts in the comments