By calling sleep() within main(), with long enough delay to ensure that all child threads terminate prior to the main thread.
1 & 10
The default value of priority given to a thread is 5 but we can explicitly change that value between the permitted values 1 & 10, this is done by using the method setPriority().
The isAlive( ) method returns true if the thread upon which it is called is still running. It returns false otherwise.
join()
When two or more threads need to access the same shared resource, they need some way to ensure that the resource will be used by only one thread at a time, the process by which this is achieved is called synchronization
start()
Runnable
To implement Runnable interface, a class needs only to implement a single method called run().
join()