40 State the output of the following code fragments :
int a = 2;
char b = '3';
String c = "4";
System.out.println(a + b);
System.out.println(a + c);
System.out.println(b + c);
Answers
Answered by
1
Output:
23
24
34
Explaination:
Int and char concatenates
Int and string concatenates
char and string concatenates
Similar questions