--

After reading the FAQ and the Java tutorial (thanks Nimret) I still need this
question answered:

If I have the following piece of code: (let's just make it pseudo code)

  String y = ""
  put user's name into String y.
  print String y

If a user accesses the servlet and gets to the second line, setting y to be
"John Doe", then another user access the same servlet's first line (setting y
to "") before the first can print the string, would the first user then print
"" instead of "John Doe"?

I read all about Single Threaded, Synch and Asynch Threads, but they talk
about potential problems due to shared resources (they give databases as
their example)...  Are variables a shared resource too?

Thanks for your indulgence,

-- Joshua Slack



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to