As far as my understanding goes Object is also a class in java. So,how is it that we can write
Object ob = new Integer[2];
and not
Integer i = new Integer[2];
How is it that a single reference ob can point to array of Integers but reference of type Integer can’t?
From
JLS#Chapter 10. Arrays