Java Byte.byteValue()
Syntax
Byte.byteValue() has the following syntax.
public byte byteValue()
Example
In the following code shows how to use Byte.byteValue() method.
public class Main {
public static void main(String[] args) {
Byte byteObject = new Byte("10");
byte b = byteObject.byteValue();
System.out.println("byte:"+b);
/*from w w w. j a v a2 s . c om*/
}
}
The output: