This lesson discusses how to create and start a new thread and identify the method invoked when a thread runs.
The Java platform has had support for multithreaded programming from the very first version.
The platform exposes the ability to create new threads of execution to the developer.
This method creates the system resources required to run a new thread and makes Java call the thread's
The thread will live as long as the
method does not exit.
If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called;
otherwise, this method does nothing and returns.
Subclasses of Thread should override this method.
At a minimum, you must override
, so that your thread will have a real purpose in life.
In the next lesson, we will apply this information on threads in an exercise.