I refer to the following codes on page 179 of the OCP
Java SE11 Programmer I Study Guide by Jeanne Boyarsky and Scott Selikoff.
String singleString = "hello world";
String oneLine = "hello" + "world";
String concat = " hello";
concat += "world";
System.out.println(singleString == oneLine);
System.out.println(singleString == concat);
The book states that "Both print false. Concatenation is just like calling a method and results in a new String."
This is not correct, right? I thought the first System.out.println should print true. This is quite puzzling because on the next page, there is a similar example and an explanation that a concatenated string literal will be in the string pool.