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 exam question on filters 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 exam question on filters" Watch "mock exam question on filters" New topic

mock exam question on filters

vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
Which three are true about the HttpServletRequestWrapper class?
(Choose three.)
A. The HttpServletRequestWrapper is an example of the Decorator
B. The HttpServletRequestWrapper can be used to extend the
functionally of a
servlet request.
C. A subclass of HttpServletRequestWrapper CANNOT modify the behavior
of the
getReader method.
D. An HttpServletRequestWrapper may be used only by a class
implementing the
javax.servlet.Filter interface.
E. An HttpServletRequestWrapper CANNOT be used on the request passed
to the
RequestDispatcher.include method.
F. An HttpServletRequestWrapper may modify the header of a request
within an
object implementing the javax.servlet.Filter interface.

I dont know the answers....
i guess A,B,D.... Am i right???
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
I say only A, B are correct. D is incorrect according me, as wrapper can be used by any other class not only by filter implementing class, though we use mostly in filter implementing class. But no one restricts me from doing this.

I agree. Here's the link:
subject: mock exam question on filters
It's not a secret anymore!