Re: byte data type



Roedy Green wrote:

byte is signed. It was an idiotic holdover from the days of C where
chars were 7 bits.

C does not specify the number of bits to a char. Nor if it is signed or unsigned (usually they are unsigned). It doesn't even specify if signed chars use two-complement notation.


I don't really think it is the business of a high level language, such as Java, to have comprehensive support for bit bashing.

Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.