| | |
Summary: Expressions and Assignment
March 23, 2008 ICS102: Expressions & Assignment 1
Outline
March 23, 2008 ICS102: Expressions & Assignment
Declaration Statements
Primitive Data Types
Identifiers
Assignment Statements
Arithmetic Operators and Expressions
Precedence Rules
Round-Off Errors in Floating-Point Numbers
Integer and Floating-Point Division
The % Operator
Type Casting
Increment and Decrement Operators
2
- Declaration Statements
Every variable in a Java program must be declared
before it is used
A variable declaration tells the compiler what kind of data
|