Online Java Compiler By
JavaTpoint.com
public class JavaByteValueOfExample1 { public static void main(String[] args) { // returns a byte object holding the specified byte value Byte byte1=8; System.out.println("valueOf() method returns : "+Byte.valueOf(byte1)); } }
Output