File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mock Tests doubts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mock Tests doubts" Watch "Mock Tests doubts" New topic
Author

Mock Tests doubts

sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
1)Which three are true about HttpServletRequestWrapper class?
a)HttpServletequest is an example of DecoratorPattern
b)this can be used to extend the functionality of servletRequest.
c)A subclass of HttpServletRequestWrapper can not modify the behaviour
of getReader method
d)An HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter interface
e)An HttpServletrequestWrapper can not be used on the request passed to the RequestDispatcher.include method
f)An HttpServletRequestWrapperWrapper may modify the header of a request within an object implementing the javax.servlet.Filter interface.

Iam thinking that the answers are a,b,d but in Mocktest they given as a,b,f.Please tell me the correct answer?
Phani Burra
Ranch Hand

Joined: Dec 13, 2007
Posts: 52
Hi,

d option is wrong bec the wrapper class can be used by any class which has an object to the class which extends the wrapper class.
 
jQuery in Action, 2nd edition
 
subject: Mock Tests doubts