I saw the following excerpt in HeadFirstJava, 2nd Edition pg 500
"I've seen examples that don't use a separate
Runnable Implementation, but Instead Just make a
subclass of
Thread and override the Thread's runO
method. That way,you call the Thread's no--arg
constructor when you make the new thread;
Thread t = new Thread(); 1/no Runnable"
Can someone please provide a simple code that demonstrates the same. I haven't fully understood what is said in the text above. I have a hunch that the last line is wrong and it should be
Thread t = new <Whatever class extends Thread class and over rides its run method>()
Am I correct or wrong