Does multithreading seem like a black art to you? This is the first part of an advanced Java tutorial on multithreading that hopefully will help you out. In this tutorial we look at the two ways of starting a thread in Java.
This is an advanced tutorial, and as such I assume that you're OK with extending classes, implementing interfaces and so on.
After starting the video, click the maximise button to make it fullscreen so you can see the code!
Code Examples For This Tutorial
Starting threads by extending the Thread class:
Starting threads using the Thread class directly:
Starting threads using the Thread constructor with anonymous classes: