I wanted to know the use of join(long millis) over sleep(long millis), as both of them will pause that thread for some time duration.
So if thread which joined by another thread will still invoked after that time duration, even joined thread completed or not. Then why to use join with milli's instead of sleep with milli's.
Though, I have received answer for this question just want to explain the question clearly.
Thanks,