← 返回首页
Byte (Java SE 26 & JDK 26)
JavaScript is disabled on your browser.
Contents  
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. MIN_VALUE
    2. MAX_VALUE
    3. TYPE
    4. SIZE
    5. BYTES
  6. Constructor Details
    1. Byte(byte)
    2. Byte(String)
  7. Method Details
    1. toString(byte)
    2. describeConstable()
    3. valueOf(byte)
    4. parseByte(String, int)
    5. parseByte(String)
    6. valueOf(String, int)
    7. valueOf(String)
    8. decode(String)
    9. byteValue()
    10. shortValue()
    11. intValue()
    12. longValue()
    13. floatValue()
    14. doubleValue()
    15. toString()
    16. hashCode()
    17. hashCode(byte)
    18. equals(Object)
    19. compareTo(Byte)
    20. compare(byte, byte)
    21. compareUnsigned(byte, byte)
    22. toUnsignedInt(byte)
    23. toUnsignedLong(byte)
Hide sidebar  Show sidebar

Class Byte

All Implemented Interfaces: Serializable, Comparable<Byte>, Constable
public final class Byte extends Number implements Comparable<Byte>, Constable
The Byte class is the wrapper class for values of the primitive type byte. An object of type Byte contains a single field whose type is byte.

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

This is a value-based class; programmers should treat instances that are equal 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:

Scripting on this page tracks web page traffic, but does not change the content in any way.