This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes local rariable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "local rariable" Watch "local rariable" New topic

local rariable

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
is the local rariable in servlet thread safe? why?
thank you in advance!

Ranch Hand

Joined: May 30, 2002
Posts: 75
Because every thread gets its own copy of local ,even if multiple threads are accessing a method each thread would have its own copy of local variable.
Ajay Rana
I agree. Here's the link:
subject: local rariable