aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mock Question 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 "Mock Question" Watch "Mock Question" New topic
Author

Mock Question

Gaurav Gambhir
Ranch Hand

Joined: Mar 04, 2006
Posts: 254
Please Get me the right answer to this Question

1. Which of the following statements is true?
A. If the target servlet does not commit or send its response, the calling
servlet can still continue processing logic after the forward(�) call.
B. Control does not return to the originating servlet after a
forward(�) call is made.
C. A forward(�) call will not continue to process until the target
servlet commits or sends its response.
D. None of the above.
Sunder Ganapathy
Ranch Hand

Joined: Apr 01, 2003
Posts: 120
It will none of the above . The control returns to the calling servlet executing lines which do not attempt to affect the response.
Gaurav Gambhir
Ranch Hand

Joined: Mar 04, 2006
Posts: 254
Thanks Sunder, but the answer is C , I just confirmed it from API
SRV.8.4
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Actually, not even C is correct. The container is responsible for sending, committing, and closing the response - not the servlet!

It's unlikely the real exam would ever have a question like that anyway, as the real exam does not focus on container laws.

Gaurav, it would be more helpful to our community if you would share your thoughts when posting a new thread rather than only asking for the answer.


A good workman is known by his tools.
Gaurav Gambhir
Ranch Hand

Joined: Mar 04, 2006
Posts: 254
Thanks Marc, but as I was not sure about any of the options before putting it up, until I went thru the specs, still not sure as if how this happens,but as if you are saying donot focus on container laws,
That's ok
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mock Question