Given this code:
String first = "Hello world";
String second = first;
first = "Something else";
After the execution, will the variable second point to the same memory instance that the variable first pointed in the first assignment (the same "Hello world") or will it be a completely different memory region (another memory region which also says "Hello world") ?
I want to know if making multiple assignments like in the second line (String other = originalString) causes any performance loss or if it's as fast as assigning any other object.