Bo Xu wrote:
>
> a -- for "static class variable"
> [a] all the "static class variable" will be "shared" to all
> new threads -- and to all "client reauestings" , this is
> because now we have only one "custom servlet
> class" .
No. Static class variables are shared because that is what static means,
not because you only have one custom servlet class.
>From the Java Language Spec
(http://java.sun.com/docs/books/jls/html/8.doc.html#37544): "If a field
is declared static, there exists exactly one incarnation of the field,
no matter how many instances (possibly zero) of the class may eventually
be created. A static field, sometimes called a class variable, is
incarnated when the class is initialized"
K Mukhar
___________________________________________________________________________
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