because second time you are passing an object(primitive int array) not an array of objects(class Integer) so, I think its giving you the address of the int[] object but when you pass Integer[] object you have a new integer at every index and the class' tostring method returns the value hold in the object.
and why do i get a warning here? but not when i use static void m(Object[] o) ?
and here i thught the output to be c because according to a rule var-args are chosen if no option is left....but output is 1
is this becasue of being specific...that is Object... is more specific than Object afterall Object... is an Object[] and we are passing an Integer[] /???/ too much confusion....
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad: