What is the logic/reason behind making
String s= new String(\"Hello World\");
Illegal in C#? The error is
The best over
In my opinion, The basic difference is the 'Pass by Reference' and 'Pass by Value' in .NET and JAVA.
Leading to a design pattern in Java, for a reason which may be
A constructor for copying an object of the same class.
In .NET you don't require such constructor to copy/clone the string because it can do it in following way (directly),
'String test = txtName.Text;'
This is my understanding of .net and java.
I hope I was able to give proper reasoning.
Thanks and Regards
Harsh Baid