O'Reilly logo

SCJA Sun® Certified Java™ Associate Study Guide by Edward Finegan, Robert Liguori

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5Understanding Variable Scope and Class Construction

CERTIFICATION OBJECTIVES

Understanding Variable Scope

Constructing Methods

Image Two-Minute Drill

Q&A Self Test

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required