byte stuff

TwitterFacebook
Get flash to fully experience Pearltrees
Please email your feedback for publication , letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green :

binary

http://mindprod.com/jgloss/binary.html

Binary Number Representation

http://www.csci.csusb.edu/dick/cs599/binary.html Integer Representation Bit-- Binary Digit 1 byte = 8 bits 1 word = N bytes, take N to be 2 (e.g., 16 bit machine) Integer takes up 2 bytes; can be signed or unsigned.

Primitive Data Types (The Java™ Tutorials > Learning the Java Language > Language Basics)

http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html The Java programming language is statically-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name, as you've already seen: Doing so tells your program that a field named "gear" exists, holds numerical data, and has an initial value of "1".
The Java programming language also provides operators that perform bitwise and bit shift operations on integral types. The operators discussed in this section are less commonly used. http://download.oracle.com/javase/tutorial/java/nutsandbolts/op3.html

Bitwise and Bit Shift Operators (The Java™ Tutorials > Learning the Java Language > Language Basics)

Java's bitwise operators operate on individual bits of integer (int and long) values. If an operand is shorter than an int, it is promoted to int before doing the operations. It helps to know how integers are represented in binary. http://leepoint.net/notes-java/data/expressions/bitops.html

Java Notes: Bitwise Operators