Cast back to short
public class Main { public static void main(String[] args) { short a, b, c; c = 2; b = 9; a = (short) (b + c); System.out.println("a is " + a); } }