Primitive type ‘short’ – casting in Java
As explained in short C# (but also for other language compilers as well, like Java) There is a predefined implicit conversion from short to int, long, float, double, or decimal. You cannot implicitly convert nonliteral numeric types of larger storage size to short (see Integral Types Table for the storage sizes of integral types). Consider, … Read more