Week 2

Table of Contents

Primitive Data Types in Java
Operators in Java
Classes and the Math Class
Packages in Java
Variable Scope in Java
Looping Structures in Java
Conditional Structures in Java

The Scope of Variables

In most C family languages, including Java, variables can be declared, modified, and accessed from very specific locations in the code.  This is referred to as variable scope.  Generally there are 3 levels of scope: Global Scope, Method Scope (often called Local Scope), and Block Scope.