9 ms·
In Java the default value for a String (or any object) is null, not an empty string.
by rbadaro 10y ago
In Java the default value for a String (or any object) is null, not an empty string.
- knorker 10y agoDid you not read my whole comment? Please read the whole thing before replying.
- rbadaro 10y agoRead the whole comment. Still don't see nothing that invalidates my answer to "Can you name one language that has strings that initialise to anything but a valid object containing an empty string?".
- knorker 10y agoYou specifically mentioned Java, and I specifically mentioned reference-based languages, with Java being the most obvious example.