Java Strings: Understanding string literal and new operator
In java there are two ways of creating a string:   using string literal String str = "Hello...
Tags: java, string, stringpool, stringliteral