I am creating an application which retrieves images from the web. In case the image cannot be retrieved another local image should be used.
While trying to execute the f
if (yourObject instanceof yourClassName) will evaluate to false if yourObject is null.
if (yourObject instanceof yourClassName)
false
yourObject
null