posted 13 years ago
Because it is static method, overriding doesn't take place, when you say a.doStuff(), because doStuff() is static method compiler replaces reference with class name, so here after compiling code will be A.doStuff(), so it invokes A version of doStuff().
SCJP 1.5 94%.
The greatest glory in living lies not in never falling, but in rising every time we fall.