my dog learned polymorphism*
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
Author

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!


SCJP<br />SCWCD<br />SCEA
AJAY RANA
Ranch Hand

Joined: May 30, 2002
Posts: 75
Because every thread gets its own copy of local variable.so ,even if multiple threads are accessing a method each thread would have its own copy of local variable.
Regards,
Ajay Rana
 
Consider Paul's rocket mass heater.
 
subject: local rariable