5 ms·
"hello" Not an object. new String("hello") Object. Along the way, autoboxing will convert a string to an object delegating to String.prototype if you wr
by raganwald 13y ago
"hello"
Not an object.
new String("hello")
Object.
Along the way, autoboxing will convert a string to an object delegating to String.prototype if you write something like "hello".foobar(). But primitive value strings are not objects.