Possible Duplicate:
Do you use curly braces for additional scoping?
I just noticed something and I know this is normal behaviour, but I don't quite understand why. I think I remember learning about this somewhere but I'm not sure.
The only reason I can think of that you would write code this way is to section-off or split up large sections of code within a single method. But is this the only reason you would use braces this way?
And what is it that allows this code to execute with the surrounding braces which have no method name or identifier associated with them?
I'm also interested in your opinion on this, and would like to know if you write code this way, and why?