+ 1
You can use them for restriction of variable scopes to keep code cleaner or more readable... i personally dont use them ... eg. int i = 0; System.out.println(i); // prints i { int j = 0; // variable i dont want anyone to use but me in this short section .... some code .... } System.out.println(j); // error because j is not defined
1st Oct 2017, 5:54 PM
Chrizzhigh
Chrizzhigh - avatar