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

Can I synchronize a null object?  RSS feed

 
Nehal Vaidya
Greenhorn
Posts: 14
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was asked this question in an interview. Never though about synchronizing a null object till I was asked. :-)
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take a moment and read our user name policy, and modify your display name accordingly. Thanks.
As for your question, it's easy to test...
 
gautam shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nehal:
Was asked this question in an interview. Never though about synchronizing a null object till I was asked. :-)

101%
even u can synchronized on null literal.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does 101% mean?
When I do this, I get a null pointer exception. I am relieved as well, as that was my understanding of what would happen.
 
gautam shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rob Ross:
What does 101% mean?
When I do this, I get a null pointer exception. I am relieved as well, as that was my understanding of what would happen.

200%
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!