Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

threadsafe objects  RSS feed

 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we declare servletcontext and session objects inside the mothod(like doGet or doPost) then are they threadsafe for being local variables?

Thanks,
Geeta
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are not thread safe.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!