Why the number changes from byte to integer or from short to byte to integer?
Here the code:
public class TypeCasting {
public static void main ( String [] args ) {
short c = 292;
int d = (byte) c;
System.out.println(d); // 36
}
}