/* The quantity of integer values that can be stored in the byte data type is 2^8 = 256. It is a signed data type, using the 2'scomplement method to store negative values. Thus the range of values for the byte is -128 to + 127. Run this code to see overflow in action. */ public class OverFlow { public static void main(String args[ ]) { byte w = 70; byte x = 80; byte y = -70; byte a = (byte)(w + x); byte b = (byte)(y - x); byte c = (byte)(x + y); //mixed signs stay in range System.out.println("a = " + a); System.out.println("b = " + b); System.out.println("c = " + c); } //closing main method } //closing class header