TestObject[] test = new TestObject[10];
and
TestObject[] test = new TestObject[10]; for (int i = 0; i < 10; i++) test[i] = new TestObject();
basically when you create an Array, does it allocate enough memory to hold just the references or both the references and the objects?

Ask A New Question
Reply






MultiQuote





|