Just was curious about below code. 

```
for (int i=0; i<9; i++)
{
   ClassA objectA = new ClassA();
}

```

or 

```
ClassA objectA;
for (int i=0; i<9; i++)
{
    objectA = new ClassA();
}

```

Any Idea is there any difference for both code ? 
from my knowledge both will create different instances each time so number of instances are going to same .. Any idea ?