Created
August 16, 2017 22:41
-
-
Save gwpantazes/13b7f695c6b32c16b6eefd2b9b74f632 to your computer and use it in GitHub Desktop.
Code Block Scoping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CodeBlockScope | |
{ | |
public static void main(String[] args) | |
{ | |
{ | |
int x = 5; | |
} | |
System.out.println(x); // Won't even compile | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment