if (null == var)...is it correct

2 views
Skip to first unread message

ankurguptajpr

unread,
Apr 24, 2014, 10:04:57 AM4/24/14
to newidea_or...@googlegroups.com
Many people suggest that never write condition like null == var

example:

public void check(String input){
      
    if(null == input){   // many people suggest to avoid it
//  do something
}
}

so whats wrong here?
Reply all
Reply to author
Forward
0 new messages