This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
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

JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mock Tests doubts" Watch "Mock Tests doubts" New topic

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

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.
I agree. Here's the link:
subject: Mock Tests doubts