The Thread class provides seven constructors which create a new thread. As stated before, the thread does not start running until Thread.start() is called. When Thread.start() is called, the new thread starts running in the run() method of an object. So deifne the functionality in the run() method.
(more…)