...
The integral types in Java are byte
, short
, int
, and long
, whose values are 8-bit, 16-bit, 32-bit and 64-bit signed twoâstwo’s-complement integers, respectively, and char
, whose values are 16-bit unsigned integers representing UTF-16 code units.
...
Wiki Markup |
---|
\[[API 2006|AA. Bibliography#API 06]\] class [{{AtomicInteger}}|http://download.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicInteger.html] \[[Bloch 2005|AA. Bibliography#Bloch 05]\] Puzzle 27: Shifty i's\[[SCG 2007|AA. Bibliography#SCG 07]\] Introduction \[[JLS 2005|AA. Bibliography#JLS 05]\] [Section 4.2.2|http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.2.2] "Integer Operations," [Section 15.22|http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.22] "Bitwise and Logical Operators" \[[Seacord 2005|AA. Bibliography#Seacord 05]\] Chapter 5. Integers \[[Tutorials 2008|AA. Bibliography#Tutorials 08]\] Primitive Data Types |
...
03. Integers (INTNumeric Types and Operations (NUM) 03. Integers (INT) Numeric Types and Operations (NUM) NUM01-J. Do not assume that the remainder operator always returns a non-negative result for integral operands