This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi All, I found a question when I am reading "SCWCD Exam study kit". The Page 198, question 3:
Which of the following methods is defined by the JSP engine? (Select One) a jspInit() b _jspService() c _jspService(ServletRequest, ServletResponse) d _jspService(HttpServletRequest, HttpServletReponse) e jspDestroy()
The answer given by the book is "d", of course, d is correct, but why the a and e are wrong?
I think what the question implies is that out of these which function is defined by the engine and cannot be overriden any further. For jspInit & jspDestroy, the jsp engine generates default implementations but you can override them using jsp declarations and add your own init/destruct routines. Not so for the _jspService method - got to accept what the jsp engine generates from your jsp page.
The wording of the question isnt that good - but I think this is what the intent behind this question is.