• Post Reply Bookmark Topic Watch Topic
  • New Topic

null instanceof aclass  RSS feed

 
Giselle Dazzi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I should remember this but I need to use it now and can you guys confirm to me if
null always evaluate true if we do an
null instanceof ClassWhatever ?
Thx
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It always evaluates to false, not to true.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!