e.g.
Code1:
String name = "John" + "Hooper";
Code 2:
static final String JOHN = "John";
static final String HOOPER = "Hooper";
String name = JOHN + HOOPER;
What is the underneath difference in these two approaches. Is there any performance or memory gain in second approach.
Thanks
