Java Data Type Tutorial - Byte TYPE example








Byte TYPE stores the Class instance representing the primitive type byte.

Syntax

TYPE has the following syntax.

public static final Class<Byte> TYPE

Example

In the following code shows how to use Byte.TYPE field.

public class Main {

   public static void main(String[] args) {

      System.out.println(  Byte.TYPE );
   }
}

The code above generates the following result.