Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

No  RSS feed

 
Dhananjay Ramakrishnappa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Therz no difference in terms of effieciency.

In the first case a is compared with null

In the second case null is compared with a.

Its very much similar to if(a==a){}
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Report post to moderator
I thing this post belongs in the Performance forum in this thread
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!