We can use join() methodto ensure all threads that started from main must end in order in which they started and also main should end in last.In other words waits for this thread to die. Calling join() method internally calls join(0);
Java Interview Java Script
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment