aspose file tools*
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
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: 41839
    
  63
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: do we need to know to this depth ?