Name

java.lang.Byte

Synopsis

This class is a smaller counterpart to the J2SE Byte class. It provides an object wrapper around the byte primitive data type. The class provides minimum and maximum constant values that can be used to test the legal size of the byte. The value of the object’s byte is accessed using the byteValue() method. In addition, the two parseByte() methods can take a number from a specified string or an optionally specified radix and return it as a byte.

public final classByte {
   // constants
   public static final byte MIN_VALUE;
   public static final byte MAX_VALUE;

   // public constructor
   public Byte(byte value);

   //  static methods
   public static byte parseByte(String s) throws NumberFormatException;
   public static byte parseByte(String s, int radix) throws NumberFormatException;

   //  public instance methods
   public byte byteValue();
   public boolean equals(Object obj);
   public int hashCode();
   public String toString();
}

Get Wireless Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.