Share via


Byte.Byte

Class Overview | Class Members | This Package | All Packages

Syntax 1

public Byte( byte value )

Parameters
  • value
    the initial value of the Byte
Description

Constructs a Byte object initialized to the specified byte value.

Syntax 2

public Byte( String s ) throws NumberFormatException

Parameters
  • s
    the String to be converted to a Byte
Description

Constructs a Byte object initialized to the value specified by the String parameter. The radix is assumed to be 10.

Exceptions

NumberFormatException If the String does not contain a parsable byte.