1 will by default be considered as int in Java.
So, when you do ((short) 1), you pass 1 as a short parameter through a function. Reception argument should be short.
Whereas when you have short s = 1, then this is obviously an integer short.
, int ( ) . , , int .
, ?
( ), . short, , ( , int/long ).