Step 1: Strings in Java are immutable. A method like concat cannot change the original string.
Step 2: str.concat(" World") builds a brand new string "Hello World" and returns it.
Step 3: That returned value is not stored anywhere. The variable str still points to "Hello".
Step 4: So println prints Hello. Answer is (A).