Arrays are co-variant and Collections are invariant.
I am try to assign an array of java.lang.Short to an array of java.lang.Integer.
But I am getting a compile time error.
Type mismatch: cannot convert from Short to Integer
Can someone please explain why this error is coming if Arrays are co-variant.