Has there ever been a performance difference in any of the java versions released to date between
foo != null
and
null != foo
?
I personally do not think there is any change in behavior of the above two forms of null check of an object, but not sure about which one performs better. I know the difference will be very low, if any, but was wondering why someone had written all the code in that fashion.