Here\'s the code snippet:
public static void main (String[]arg) { char ca = \'a\' ; char cb = \'b\' ; System.out.println (ca + cb) ; }
If you want to have a String as result of the + operator you have to use type String as operands.
You should write:
public static void main (String[]arg) { String ca = "a" ; String cb = "b" ; System.out.println (ca + cb) ; }
The + operator applied on char operands behaves as the arithmetic sum.