Doubt on how to use "!=" [duplicate]

0

Sometimes I run into the exclamation mark ! before the character equal = and I always have a question about why I have it there. Small example:

if (model.getFile() != null){

I know that if the result of model.getFile() is true it follows the code, but what does ! do explicitly?

    
asked by anonymous 11.07.2017 / 17:30

0 answers