In Java programming, despite String being a reference variable and not a primitive, a constructor is not required, e.g
String s = "stringValue";
Is the same as
String s = new String("stringValue");
I've seen it mentioned before, but never explained. How is String treated as a primitive, and is this functionality able to built into other classes?
Edit: Looking for the actual code that makes String different, and how it can be used - not like in the specific example supplied.