Difference between name != null and null != name in java?
        Posted  
        
            by GK
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by GK
        
        
        
        Published on 2010-03-17T06:42:17Z
        Indexed on 
            2010/03/17
            6:51 UTC
        
        
        Read the original article
        Hit count: 161
        
java
I have seen people using the following conditions interchangeably.
        String name;
        //some code
        if(name != null)  
        //or if(null != name)
So is there any difference in this? or both are same? I am asking this here because, i heard that there is some difference in these, but don't know what. Thanks
© Stack Overflow or respective owner