Java byte type

Introduction

The smallest integer type is byte.

Java byte is a signed 8-bit type that has a range from -128 to 127.

byte type are useful when working with a stream of data from a network or file.

byte type variables are declared by use of the byte keyword.

For example, the following declares two byte variables called b and c:

byte b, c;



PreviousNext

Related