Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Mock Tests doubts

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic