I don\'t understand why this works and I hope somebody can explain it to me. Here is an example:
TestObject array[] = new TestObject[10]; for(int i= 0; i <= 1
The scope for a for loop is limited to the iteration. So TestObject object is created and destroyed in each iteration.
for
TestObject object