The following Java code does not compile.
int a = 0; if(a == 1) { int b = 0; } if(a == 1) { b = 1; }
Why? There can be no code pa
It is a local variable and is limited to the {} scope.
Try this here.