File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Thread Safe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Thread Safe" Watch "Thread Safe" New topic
Author

Thread Safe

Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340
Implementation of request and response objects are guaranteed to be thread-safe. True/False?

A True
B False

Can anyone please confirm the answer of this question.
Thanks


Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
Reshma Shanbhag
Ranch Hand

Joined: Sep 17, 2002
Posts: 203
Request and Response Objects are Thread Safe


SCJP 1.4, SCWCD 1.4
Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340
The answer given was false.

request and response objects are not guaranteed to be thread safe.
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

From which mock exam you are reffering this question ?

Please refer this thread.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340
This was the explination given in support of the said answer

Implementation of the request and response objects are "not guaranteed" to be thread safe. They should only be used within the scope of the request handling thread.

References to the request and response objects must not be given to objects executing in other threads as the resulting behaviour may be non-deterministic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread Safe