Senhores …
Um char eh um inteiro de 16 bits …
Um short eh um inteirro de 16 bits tambem …
Por que a soma de dois char não cabe em um short ???
char c1 = ‘\n’;
short sc1 = (short) c1;
System.out.printf(“Valor de SC1=%1$d\n”,sc1);
char c2 = ‘\n’;
//ERRO : char c3_1 = (short) (c1 + c2);
int c3 = (int) (c1 + c2);
System.out.printf(“Valor de C3=%1$d\n”,c3);