Object class is super class to every class in Java. So every class should inherent the properties or behavior of Object class.
Then we can declare array of objects as sh
Its basic Java principle, Everything is an Object, thus you can use Object reference for everything like Object o = new AnyOtherClass()
Object
Object o = new AnyOtherClass()
You can use reference of a class for its sub classes like List l = new Arraylist()
List l = new Arraylist()
But String[] is an Array and Array is not an ancestor of String
Array
String