Why isn't String() constructor private?
<p>Is using a String() constructor as against string literal beneficial in any scenario?
Using string literals enable reuse of existing objects, so why do we need the public constructor? Is there any real world use?
For eg., both the literals point to the same object.</p>

<pre><code>String name1 = "name";//new String("name") creates a new object.
String name2 = "name";
</code></pre>
