Arpit Gadle wrote:Hi,
I am preparing for SCJP 6.0. I am having a problem in understanding join() method.
Can any body provide a small program demonstrating use of join().
The join() method is used to wait for another
thread to finish. So, when you call the join() method on a thread object, the method will not return, until the thread represented by the thread object has finished.
I am not sure what "problem in understanding" that you may be having. Or how could an example program can really help more than what I just described. Perhaps you can elaborate the issue that you are having.
Henry