• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GenericServlet log()

 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Yes. It shouldn't be.
I just want to know anyone had experience like this.

Thanks,
Anitha
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • 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
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic