Online Java Compiler By
JavaTpoint.com
public class JavaByteByteValueExample1 { public static void main(String[] args) { Byte b1=34; //returns the value of this Byte as a byte byte b2=b1.byteValue(); System.out.println(b2); } }
Output