Byte Data Type using Java
on May 30, 2018
Byte Data Type using Java
The smallest integer type is byte. This is a signed 8-bit type that has a range from –128
to 127. Variables of type byte are especially useful when you’re working with a stream
of data from a network or file. They are also useful when you’re working with raw
binary data that may not be directly compatible with Java’s other built-in types.
Byte variables are declared by use of the byte keyword. For example, the following
declares two byte variables called b and c:
byte b, c;
0 comments: