This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 202
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
 
Similar Threads
thread-safe
JSP page directive isThreadSafe
wich statement is true
HFSJ Mock Exam
Single Thread Model