Demonstrate usage of java Thread.join() method