The question was arisen about an array of objects when it's more in the source code than it's required. For example, I have Button objects like this(not initialized yet):
Button[] buttons = new Button[99]
So the question is that if I create and initialize say for instance only 10 of them, will there be any additional memory consumption because of the 99 array of buttons?
Buttonis a value or reference type