在Java中,哪个更有效,有什么区别?
if (null == variable)
要么
if (variable == null)
java null if-statement
if-statement ×1
java ×1
null ×1