Difference between null==object and object==null
- by priyank.mp
Hi I would like to know diff between the above comparisons?
I am getting null pointer exception when I check object.getItems() == null.
But if I change it to null == object.getItems(), it workes fine.
I did look into this http://stackoverflow.com/questions/2938476/what-is-the-difference-between-null-object-and-objectnull-closed
But I didnt get satisfactory answer.