In Java :
System.out.println('c' + "Hello world" + 1);
gives
cHello world1
but
System.out.println('c' + 1 + "Hello world");
gives
100Hello world
i.e c is converted to its ASCII character.What rule does Java use for this?Can someone tell me the set of rules which I can follow to predict the output as this has become quite confusing for me.