jQuery in Action, 2nd edition*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSP method 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 "JSP method" Watch "JSP method" New topic
Author

JSP method

Richard Rex
Ranch Hand

Joined: Sep 19, 2005
Posts: 100
Hi Ranchers!

I've seen this question in one of the mock exams I've been doing.

Which of the following methods can be overriden by the author of a JSP page?

a. void jspInit()
b. void _jspService(HttpServletRequest request, HttpServletResponse response)
c. void jspDestroy()
d. None of the above

I was supposed to answer A and D, but the engine allows only one answer... So I answered A.

And looked at it again after the mock exam and the engine says its D.

My question is why??? The mock unfortunately doesn't have explanation why...


"If you fail to plan, you plan to fail."<br /> <br />Chad<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3<br />SCDJWS (next)
subathra sangameswaran
Greenhorn

Joined: Nov 19, 2005
Posts: 27
Hi,
The API says clearly that jspInit() and jspDestroy() may be overridden in a JSP Page using the declaration element.
May be the mock exam is just trying desparately to complicate things with the access modifiers.


suba
 
GeeCON Prague 2014
 
subject: JSP method