for(int i=0; i<10;i++){ int j=0; }
Is j a block variable or a local variable? I see that j\'s scope is only till the for loop ends
j variable is accessible inside {this block} only. That not only means that it can't be changed anywhere else, but also it is recreated every time loop loops.