• Post Reply Bookmark Topic Watch Topic
  • New Topic

comparing null values  RSS feed

 
Nasir Quresh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Community

I have a trivial question i just wanted to know

if
null = some object is a right way
i mean can "null" take the LHS
if this is wrong what are the implications


please reply to me with your insights


Regards

Nasir
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happened when you tried it? Did it compile? Did it run?

The best (and fastest) way to learn is to simply experiment.
 
Nasir Quresh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i know but my intent was theoretically analyzing the impact on the logic if any
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nasir Quresh wrote:I have a trivial question . . .
It's not trivial at all. It may become easier if you remember the difference between = and ==, however.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!