LINK:
http://www.angelfire.com/or/abhilash/Main.html Question 24.
An Anonymous Inner class
a. Does not have a constructor
b. Can implement an interface
c. Can extend a non-final Class
d. Can implement an interface and extend a non-final class (at the same time).
Answer was a,b,c. Thats right!
It says "Doesnt have a constructor". I know that "We cannot define constructor for Anonymous Inner Class". But choice 'a' is not prefectly versed like what I have written. Right? It says, "Anonymous Inner Class does not have a constructor", which is false, as JVM provides a constructor to Anonymous Inner Class.
Can you please tell me, whether questions in actual exam will have statements very specifically written or randomly versed like this ? Thanks!