PPT Slide
Example creating two instances of SimpleClass and running them:
class TwoThreadsTest {
public static void main (String[] args) {
new SimpleThread(“Jamacia”).start();
new SimpleThread(“Fiji”).start();
}
}
- Notice use of overridden Thread method run().