Is there any difference when using a if-statement to check if the string is empty by using String = null or String.isEmpty() ?
ie:
public String name;
if(name == null)
{
//do something
}
or
public String name;
if(name.isEmpty())
{
//do something
}
if there is any different (including performance issues) please let me know.
nullbutisEmpty()