Well, it seems you guessed wrong.
Question: why do you have to guess? Why can't you compile and see what is the actual output and try to figure out why you get what you get?
In simple words:
in case of
System.out.println (a + b + y + z);
Systemout.println(y + z + a + b);
Here is a test
public class Main2 {
public static void main(String []strings) {
String a = "6";
double y = 7.1;
int b = 10, z = 4;
TestClass t = new TestClass();
TestClass t2 = new TestClass();
System.out.println(t);
System.out.println(t + a);
System.out.println(b + t.toString());
System.out.println(t2.toString() + t);
}
}
class TestClass {
int i;
int j;
TestClass() {
i = 10;
j=23;
}
@Override
public String toString() {
return String.valueOf(i) + j;
}
}