1. join method• final void join() throws interruptedException• join() method allows the thread to wait until thethread on which it was called terminates.• Calling thread…