Strings are objects in Java, so why don't we use 'new' to create them?
Clash Royale CLAN TAG #URR8PPP Strings are objects in Java, so why don't we use 'new' to create them? We normally create objects using the new keyword, like: new Object obj = new Object(); Strings are objects, yet we do not use new to create them: new String str = "Hello World"; Why is this? Can I make a String with new ? new You should also have a look on this question stackoverflow.com/questions/456575/java-wrapper-equality-test – changed Jan 5 '10 at 21:56 Because string literals are already objects. – EJP Feb 7 '16 at 9:33 Note that new String(...) has been used to circumvent an implementation detail when substringing large string...