Online Java Compiler By
JavaTpoint.com
public class byteValueExample3 { public static void main(String[] args) { Integer obj = new Integer(68); // it will returns the value of Integer as a byte type. byte b = obj.byteValue(); System.out.println(" byte Value of b = " + b); } }
Output