+ 1
Why the output of this is a number?
System.out.print('h'+'i');
4 Answers
+ 5
Caty Zurano double " would make it a string not a char. The result would be "hi" if it was "h" + "i"
+ 4
Characters (chars) have integer values and using the + operator on two chars will return the sum of their Integer values
+ 4
for this read about ASCII characters value
+ 1
thanks!! is is the same to use simple ' or double" quotes?