Note: Before going further it is advised to go through the Multithreading – Concepts and Java Thread Basics
In Java threads can be created in two ways – by extending Thread class and implementing Runnable interface. Both programs are given in the following links.
1. Creating and Spawning Threads
For all programs on multithreading
1. Multithreading at a Glance