join() method in java threads | Core Java Tutorials

This “join() method in java threads” page is providing clear information about join() method in java application and what is the advantage of using join() method instead of sleep() method in java multi threading.


join() method:

  • A pre defined method used to implement inter thread communication.
  • Used to join threads in java application.
  • We use join() method in case of one thread execution should resume only when another thread moved to dead state.

join() method in java threads


Following method of Thread class used to join threads:

join() method example in Threads


Share this