Java 相 關 的 資 料


Keywords
abstract double int static
boolean else interface super
break extends long switch
byte final native synchronized
case finally new this
catch float null throw
char for package throws
class goto private transient
const if protected try
continue implements public void
default import return volatile
do instanceof short while


Operator Precedence
Operator Type Operator
Postfix operators [] . (params) expr++ expr--
Unary operators ++expr --expr +expr -expr ~ !
Creation or cast new (type)expr
Multiplicative * / %
Additive + -
Shift << >> >>>
Relational < > >= <= instanceof
Equality == !=
Bitwise AND &
Bitwise exclusive OR ^
Bitwise inclusive OR |
Logical AND &&
Logical OR ||
Conditional ?:
Assignment = += -= *= /= %= >>= <<= >>>= &= ^= |=


The primitive data types of Java
boolean either true or false
char 16-bit Unicode 1.1.5 character
byte 8-bit interger (signed)
short 16-bit interger (signed)
int 32-bit interger (signed)
long 64-bit interger (signed)
float 32-bit floating point (IEEE 754-1985)
double 64-bit floating point (IEEE 754-1985)