Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread safe

 
Sunjeev Shetty
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A developer wants to ensure that data is updated in a threadsafe manner?which two support this goal?
A)Store the data in a local variable
B)Store the data in a servlet request object.
C)Store the data in a servlet context object.
Answer given is a and c.
I think it should be a and b.

Thanks
 
Charith Fernando
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
even i think its "A" and "B" ... where did u get this question from? can u please post the link... i think this person must've answered as A and C thinking about context init parameters.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!