File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Mock Question

Gaurav Gambhir
Ranch Hand

Joined: Mar 04, 2006
Posts: 256
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: 256
Thanks Sunder, but the answer is C , I just confirmed it from API
Marc Peabody
pie sneak

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: 256
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:
subject: Mock Question
It's not a secret anymore!