5Understanding Variable Scope and Class Construction
CERTIFICATION OBJECTIVES
• Understanding Variable Scope
CERTIFICATION OBJECTIVE
Understanding Variable Scope
Exam Objective 4.2 Given an algorithm as pseudo-code, determine the correct scope for a variable used in the algorithm and develop code to declare variables in any of the following scopes: instance variable, method parameter, and local variable.
The last chapter discussed what a variable is and how it is declared to store different values. This section will explore the way variables are organized in your code. As you can imagine, any ...
Get SCJA Sun Certified Java Associate Study Guide (Exam CX-310-019) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.