What is the logic/reason behind making
String s= new String(\"Hello World\");
Illegal in C#? The error is
The best over
Because strings are immutable and have language support in how they are constructed.
In your example, since you are using a string literal, it will get interned. Any copied string that would have been created from it would end up being the same exact reference, as it would come from the intern pool.