I have a question about comparing a string with the empty string in Java. Is there a difference, if I compare a string with the empty string with == or eq
==
eq
"".equals(s)
Seems to be the best option, but there is also Stringutils.isEmpty(s) contained in the Apache commons lang library
Stringutils.isEmpty(s)