A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Joined: Sep 19, 2005
Apr 10, 2006 03:55:00
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
a. void jspInit()
b. void _jspService(
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)
Joined: Nov 19, 2005
Apr 10, 2006 04:47:00
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.
It is sorta covered in the
JavaRanch Style Guide
subject: JSP method
SCWCD Exam study kit prolem!
RequestDispatcher to include static page
Mistake in HF servlets?
Declaration of Literals
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014