Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes abt variable synchronization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "abt variable synchronization" Watch "abt variable synchronization" New topic
Author

abt variable synchronization

sm mishra
Greenhorn

Joined: Dec 12, 2006
Posts: 5
A member variable that is an object reference, can we synchronize this member variable,i mnot clear about this
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
you can do that with a synchronized block,but volatile makes much more sense
 
jQuery in Action, 2nd edition
 
subject: abt variable synchronization
 
Similar Threads
Newbie: when to use form and request params
sun sample question
Variable Scope
JSF: Need advice on acheiving specific funcationality
Should I know how JSPs convert to servlet?