The longValue method of Byte class is used for converting a byte value to primitive long value.
public class ByteWrapper {
public static void main(String[] args) {
byte byteValue = 10;
Byte objByte = new Byte(byteValue);
long value = objByte.longValue();
System.out.println(value);
}
}





















