String

what is the difference between String s= new String("Hello"); and String s = "Hello";
[182 byte] By [Hailstorma] at [2007-10-2 9:00:25]
# 1
The first one contains an unecessary call to a constructor and makes sure that s == "Hello" will return false.
CeciNEstPasUnProgrammeura at 2007-7-16 23:07:22 > top of Java-index,Java Essentials,Java Programming...