Byte longValue()
returns long value from this Byte.
longValue
has the following syntax.
public long longValue()
longValue in class Number
longValue
returns
a long value from this Byte.
In the following code shows how to use Byte.longValue() method.
public class Main { public static void main(String[] args) { Byte byteObject = new Byte("10"); long l = byteObject.longValue(); System.out.println("long:"+l); } }
The output: