Y
Hacker News
new
|
ask
|
show
|
jobs
by
rbadaro
3525 days ago
In Java the default value for a String (or any object) is null, not an empty string.
1 comments
knorker
3525 days ago
Did you not read my whole comment? Please read the whole thing before replying.
link
rbadaro
3521 days ago
Read 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?".
link
knorker
3519 days ago
You specifically mentioned Java, and I specifically mentioned reference-based languages, with Java being the most obvious example.
link