Module java.base
Package java.lang

Class Byte

java.lang.Object
java.lang.Number
java.lang.Byte
All Implemented Interfaces:
Serializable,Comparable<Byte>,Constable

public final classByteextendsNumberimplementsComparable<Byte>,Constable
TheByte class wraps a value of primitive typebyte in an object. An object of typeByte contains a single field whose type isbyte.

In addition, this class provides several methods for converting abyte to aString and aString to a byte, as well as other constants and methods useful when dealing with abyte.

This is avalue-based class; programmers should treat instances that areequal as interchangeable and should not use instances for synchronization, or unpredictable behavior may occur. For example, in a future release, synchronization may fail.

Since:
1.1
See Also: