This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock Question

 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sunder, but the answer is C , I just confirmed it from API
SRV.8.4
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic