Mahanth Kumar wrote:
If this is the case wouldnt it lead to catastrophic results in case in an application only one thread happens to be running at some point and it calls join()
Yea... I guess. But wouldn't it also be "catastrophic". if you call the System.exit() method when you didn't mean to? Having a thread wait for itself to finish, is simply a bug, and it is probably as bad as any other bug.