This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes do we need to know to this depth ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "do we need to know to this depth ?" Watch "do we need to know to this depth ?" New topic
Author

do we need to know to this depth ?

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
Given the following code, which of the following statements is required at line 9 to write the name of the servlet and the command to the log file?

Answer 1 is correct. The log methods declared in javax.servlet.GenericServlet write the specified message to a servlet log file, prepended by the servlet's name.

Answers 2 and 4 are incorrect because the log methods declared in javax.servlet.ServletContext only write the specified message to a servlet log file. Answer 3 is incorrect because there are no log methods declared in javax.servlet.ServletConfig

??? this is from j2eecertificate.com !


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
Without seeing either the code, or the 4 possible answers, it's hard to say anything...


Ping & DNS - my free Android networking tools app
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
i meant do we need to know the differnce between the log methods in GenericServlet and ServeltContext ...as shon in the bold text ?

hope that we dont need to know this
Rohitt Vermaa
Ranch Hand

Joined: Oct 12, 2006
Posts: 232
This is not needed in the current exam. I think this was for 310-080.


SCJP ,SCWCD
Sayak Banerjee
Ranch Hand

Joined: Nov 28, 2006
Posts: 292
You just need to know the difference between the two.....the one in GenericServlet prepends the Servlet name


Turn on, tune in, drop out.
 
Consider Paul's rocket mass heater.
 
subject: do we need to know to this depth ?
 
Similar Threads
logging lifecyle events of servlet
HOw to create user defined log file for an application
HFSJ 1st edition mock exam question
Mock Exam Doubts
servlet context log info