The points to understand in java is what you have read in the book for the object is pretty correct that if have 2 objects then both wud be having different address space and no need to synch.
Sync. Requires when more then one thread access the SAME object, as thread uses the same address space for execution. This is the case with Servlet is, single object is going to be used by more then one thread of the Servlet Server. So, all the global attributes needs to be synchronized by ur Servlet only. Make sense. Developer NOT Manager, MM -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED] On Behalf Of VERONICA ROACH Sent: Tuesday, February 07, 2006 4:24 AM To: SERVLET-INTEREST@JAVA.SUN.COM Subject: Re: PRIVATE VARIABLES WITHIN PUBLIC CLASS ok - seems we are in sync - the only difference is between servlets and non-servlets - I was correct for non-servlets - thanks again - I will stash this away for future demystifying !! Veronica __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ________________________________________________________________________ ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html