January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.lang.Byte
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 byteMIN_VALUE; public static final byteMAX_VALUE; // public constructor publicByte(byte value); // static methods public static byteparseByte(String s) throws NumberFormatException; public static byteparseByte(String s, int radix) throws NumberFormatException; // public instance methods public bytebyteValue(); public booleanequals(Object obj); public inthashCode(); public StringtoString(); }
Read now
Unlock full access