Thread Constructorsand Methods
Creates a runnable object.
void run()
Invoked by the Java runtime system to execute the thread. You must override this method and provide the code you want your thread to execute.
void start()
Starts the thread, which causes the run()method to be invoked. Called by the runnableobject in the client class.