Next: 4.3.1 Variable Names and
Up: 4. Appendix: Java Mechanics
Previous: 4.2 Precedence of Operations
4.3 Java Statements
In Java, computations are expressed as sequences of statements.
The most common form of Java statement is an
assignment statement
type var = expr ;
where type is a Java type name, var is a Java variable name,
and expr is an expression of type compatible with the type of
var. The assignment statement
int x = 5;
asserts that ``the variable x has value 5''.
Subsections
Corky Cartwright
2003-07-07