A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Joined: Oct 14, 2002
Oct 26, 2002 22:54:00
is the local rariable in
thread safe? why?
thank you in advance!
SCJP<br />SCWCD<br />SCEA
Joined: May 30, 2002
Oct 26, 2002 23:30:00
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.
subject: local rariable
Did implicit objects are instance variables or local variables in _jspService
Resource Local Transactions
Are variables defined inside a constructor instance or local?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014