• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GenericServlet log()

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
which of the following classes provide methods to write messages to a log file?
A. GenericServlet
B. ServletRequest
C. HttpServletRequest
D. ServletContext

The ans is A and D. but the ans given was A alone since D is an interface.
In this situation which one shall i choice ? The most correct ans or all possible ans.

Thanks,
Anitha
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i would say that you do not have to worry about this kind of situation.
The real exam does not come with weird or ambiguous questions like this one.
At least i hope !
 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. It shouldn't be.
I just want to know anyone had experience like this.

Thanks,
Anitha
 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think, context of the question is "From where log(..) methods come from?" So, the answer is A,D.

Because, origin of log(..) is from GenericServlet class and ServletContext interface.
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think, context of the question is "From where log(..) methods come from?" So, the answer is A,D.

Because, origin of log(..) is from GenericServlet class and ServletContext interface.
reply
    Bookmark Topic Watch Topic
  • New Topic