Online Java Compiler By
JavaTpoint.com
public class byteValueExample4 { public static void main(String[] args) { Integer obj = new Integer(137); // it will returns the value of Integer as a byte type. byte b = obj.byteValue(); // Due to byte range "-128 to 127" it will print 119 in output System.out.println(" byte Value of b = " + b); } }
Output