code blocks


public class CodeBlocks {
	public static void main(String[] args) {
		{ // block starting here
			int a = 5;
			System.out.println("a inside block" + a);
		} // block ending here

		System.out.println("a outside block" + a); // a not known here, program
							  // will give error
	}
}