What happens if we call newThread.join(), before newThread.start(), let's say, in main method (thread)? I didn't see any effects...
Post by:Henry Wong
Nothing. The method just returns... which you have seen.
Post by:Ajay Saxena
, Ranch Hand
Following is the implementation of Thread.join(long millis). Calling newThread.join() leads to join(0) being called which in turn,as Henry said,causes the method to return,because isAlive() for a thread that has not been started would return false.