Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.582 :

Posted: Mon Oct 08, 2012 5:33 am
by ETS User
It is said in explanation, that this

Code: Select all

Object[] o = new int[10]; 
is not valid. But why?

Re: About Question com.enthuware.ets.scjp.v6.2.582 :

Posted: Mon Oct 08, 2012 7:15 am
by admin
Because an int is a primitive data type and primitive data types are not Objects. So an array of ints is not an array of Objects.

HTH,
Paul.