I am preparing for SCJP and may be this is out of scope for the exam but i would really appreciate if somebody can throw some light on this. Actually, this question came across while my preparation for SCJP.
But nowhere in Integer class there is length property.
Regards, Sachin Anand
Joined: Aug 03, 2002
It does not print "java.lang.Integer" but "[Ljava.lang.Integer;". That is the internal name of the Integer class. As I wrote previously you will have to learn to use the Reflection API to investigate further, or you will have to look at the Java source code.