Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rbadaro
· 10y ago · 0 comments
In Java the default value for a String (or any object) is null, not an empty string.
Comments
[–]
knorker
10y ago
Did you not read my whole comment? Please read the whole thing before replying.
[–]
rbadaro
OP
10y 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?".
[–]
knorker
10y ago
You specifically mentioned Java, and I specifically mentioned reference-based languages, with Java being the most obvious example.