But sometimes you need to know if there is a NULL string, and it does not matter if it is empty (in the OO design). For example, you have a method and it will return NULL or string. , because null means that the operation failed, and an empty string means that there is no result.
In some cases, you want to find out if it worked or not before taking any actions in other objects.
source share