First page Back Continue Last page Graphics
Identifier Scopes
The identifier scoping rules for methods and control structures are the same as for C++:
- The scope of an identifier is the method or innermost block in which it is declared
There are two additional scopes in Java:
- Class scope: an entire class definition
- Package scope: an entire directory of Java source code files (covered later)