case 1:
char c='A'+'A';
System.out.println(c); // print question mark (?)
case 2:
char c1='A';
char c2='A'+c1; // Compile time error
System.out.println(c2);
In case1 I have logic When I am adding two char literals, the sum of ascii value is printing which is equivalent to ascii value of question mark. But in case2 why compile time error is showing that 'cannot convert from int to char'
if char+char=int then this rule must be apply for both cases.