posted 22 years ago
The answer is A coz you if you use anonymous classes only you can instantiate it & use it in the class you defined etc. (note you can still instantiate it.) secondly its not a top level class all questions should be assumed as top level class question until specified otherwise(As per my experience in all mock exams)
Again to explain in detail say if you take the static class example java.lang.Math class you can't make a instance of this class as the constructor is private.
Its a normal practice to create such classes for Util methods.
SCJP 1.4 (86%)<br />SCMAD Beta (77%)<br />SCEA (part I:89%,partII:93%)<br />MCAD (cleared 70-315 & 70-320 [Score 980])