I have an object S
, which contains the method called getstaus()
. Now the value
of the status coming from the backend could be null
also, so I am checking
through the following way:
if (S.getStatus().equals(null))
{}
Please let me know it is the correct approach or not or is there any other better approach than this.