Scope of a declaration


Source code

1class ScopeOfADeclaration {
2
3 static Integer varr = 1;
4
5 static void m() {
6 String varr = "23";
7 varr.hashCode();
8 ScopeOfADeclaration.varr.hashCode();
9 }
10
11}

Bytecode



Java compiler version: 21
Other examples
Main page