Usually the compiler generates code to perform boxing and unboxing. But what does the compiler, if the boxed values are not needed? Is the (Oracle standard) compiler smart e
Will the compiler actually insert code for boxing each value of the array?
The compiler will reject the code because an int[] cannot be passed into a method that takes an Object[] parameter.
int[]
Object[]
Autoboxing happens only for individual primitive values, never for entire arrays.