This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
the reference to the array is itself Object as always but the elements can be instanceof any class if you write like this :
Object object1 = new Object; Here obviously object1 passes the instanceof test with the Object and each element of the array may keep reference of Any object because Object reference can keep reference of any Object.
Nobody except Object reference can refer to Float, because "Float" fails instanceof test with the Float.
I hope understanding the concept in this way helps you!