Online Java Compiler By
JavaTpoint.com
public class JavaByteIntValueExample2 { public static void main(String[] args) { Byte byte1=23; //converting the byte value to integer int val1=byte1.intValue(); Byte byte2=45; int val2=byte2.intValue(); //calling integer class methods System.out.println("Sum : "); System.out.print(val1 +"+"+val2+"= "); System.out.println(Integer.sum(val1,val2)); } }
Output