Java Data Type Tutorial - Byte BYTES example








Byte BYTES stores the number of bytes used to represent a byte value in two's complement binary form.

Syntax

BYTES has the following syntax.

public static final int BYTES

From version

1.8

Example

The following example shows how to use BYTES.


public class Main {
  public static void main(String...args){
System.out.println(Byte.BYTES);
  }
}

The code above generates the following result.