Skip to content

Instantly share code, notes, and snippets.

@gwpantazes
Created August 16, 2017 22:41
Show Gist options
  • Save gwpantazes/13b7f695c6b32c16b6eefd2b9b74f632 to your computer and use it in GitHub Desktop.
Save gwpantazes/13b7f695c6b32c16b6eefd2b9b74f632 to your computer and use it in GitHub Desktop.
Code Block Scoping
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