Online Java Compiler By
JavaTpoint.com
public class JavaByteIntValueExample1 { public static void main(String[] args) { Byte b1=98; Byte b2=102; //returns the numeric value of this object after conversion to type int. int val=b1.intValue(); System.out.println("1. Integer value : "+val); System.out.println("2. Integer value : "+b2.intValue()); } }
Output