posted 17 years ago
If you didnt have that anonymous class definition , it would have constructed a Thread object using the constructor Thread(Runnable r). BUT here your code instantiates a subclass of Thread (not the Thread class), declared anonymously and assigns its ref to "t". Anonymous class has to do what its created for.
<i>If there were no Exceptions (not Errors!), Life would have kinda sucked!!</i>