Given the following code, which of the following statements is required at line 9 to write the name of the servletand 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.