| Literals | Integer |
Decimal: 852 Hexadecimal: 0xfc96 Octal: 0741 |
Max int = 2147843647 (dec) 0x7fffffff (hex) 017777777777 (oct) Min int = -2147843648 (dec) 0x80000000 (hex) 02000000000 (oct) Max long = 9223372036854775807L |
| Floating Point |
Max float = 3.40282347e+38f Least positive float = 1.40239846e-45f Max double = 1.79769313486231570e+308 Least positive double = 4.94065645841246544e-324 | ||
| Boolean |
false true | ||
| Character |
Escape sequences \b Backspace \t Horizontal tab \n Newline \f Formfeed \r Carriage return \" Double quote \' Single quote \\ Backslash \xxx Octal character (xxx=000..0377) \uxxxx Unicode character | ||
| String | |||
| Reference |
null | ||
| Types | Primitive |
boolean |
|
byte |
Min byte=-128 Max byte=127 | ||
char |
|||
double |
Max double=1.79769313486231570e+308 | ||
float |
Max float=3.40282347e+38f | ||
int |
Max int=2147483647 | ||
long |
Max long=9223372036854775807L | ||
short |
Max short=32767 | ||
| Object reference | array | ||
| class instance | |||
| Variables | |||
| Operators | Arithmetic | + - * / % | |
| Comparison | == != < > <= >= | ||
| Logical | ! && || ?: | ||
| Bitwise | ~ & | ^ << >> >>> | ||
| Assignment statement | target = expression; | ||
| target = target op expression; | += -= *= /= &= |= ^= %= <<= >>= >>>= | ||
| target = target op 1; | ++ -- |