Though the maximum range of the short data type is 2^15-1(2 power 15 -1), why am i getting the error message as:"Explicit cast needed to convert
int to short" for the following code:
public class Shrt
{
public static void main(
String args[])
{
short s =9;
short s1 = s+s;
System.out.println(s1);
}
}