Bookmark Topic Watch Topic
  • New Topic

[HFSJ 2nd Edition] chapter 5 Mock Exam Question # 15

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Report post to moderator
Which are true about the RequestDispatcher interface? (Choose all that apply.)
A. Of its two methods, forward() is used most frequently.
B. Its methods take the following arguments: a resource, a request, and a response.
C. Depending on the class whose method creates a RequestDispatcher, the path to the resource to be forwarded to will change.
D. Regardless of the class whose method creates a RequestDispatcher, the path to the resource to be forwarded to will NOT change.
E. If your servlet invokes RequestDispatcher.forward, it can send its own response
The options A and C are the correct one. I know how option A is correct. But I couldn't find how option C is correct and options D and E are incorrect.
 
    Bookmark Topic Watch Topic
  • New Topic