To check if it is null, we call the isNull() method and pass the object getUserObject as a parameter . It returns true as the passed object is null.13 Ara 2020
Read moreHow do you check if an object field is null?
To check if an object’s properties have a value of null :
Read moreHow do I know if my POJO is empty?
The isEmpty() method of Properties class is used to check if this Properties object is empty or not. Returns: This method returns a boolean value stating if this Properties object is empty or not.
Read more