Cast result of plus operation to byte
public class Main { public static void main(String[] args) { short a, b, c; c = 2; byte s; s = (byte) c; System.out.println("s is " + s); } }