Why is it that if line 5 is commented out then the method in 11 is not applicable (and results in a compiler error), even though it does override as the code is above.
I've noticed this type of over-ride used a lot with the run() method when creating Threads.
SCJP 1.5, SCJD 1.6
John de Michele
Joined: Mar 09, 2009
The @Override annotation lets the compiler know that you're overriding or implementing a method in a superclass. By commenting out the original method, you're no longer overriding it in your anonymous subclass.