File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!