I have a doubt which follows.
public static void main(String[] args) throws IOException{ int number=1; System.out.println(\"M\"+number+1); }
If you perform + operation after a string, it takes it as concatenation:
+
"d" + 1 + 1 // = d11
Whereas if you do the vice versa + is taken as addition:
1 + 1 + "d" // = 2d