| Elements of the Java Platform | CS 161 - Java |
public static void main(String[] arg)
Notice where it is declared: inside the class but outside any method.
These are called instance variables
A variable (also called a field) is given a value using
destination = source expression;
object_reference.method_name();
System.out.println( [ a string ] )
try { ... } catch ( ... ) { ... }
|
jwd |