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
This is because 'object' is in visibility scope of current loop iteration, so for next iteration, there can be initialized a new one with the same name (other scope).