wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFJS (V2) Final Mock Question 6 is wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFJS (V2) Final Mock Question 6 is wrong?" Watch "HFJS (V2) Final Mock Question 6 is wrong?" New topic
Author

HFJS (V2) Final Mock Question 6 is wrong?

Kay Li
Greenhorn

Joined: May 11, 2009
Posts: 14

When creating session listeners which are true? (Choose all that apply.)
A. They are all declared in the DD.
B. Not all of them must be declared in the DD.
C. The DD tag used to declare them is <listener>.
D. The DD tag used to declare them is <session-listener>.
E. The DD tag used to declare them is placed within the <web-app> tag.
F. The DD tag used to declare them is placed within the <servlet> tag.

Book's answer: BE
My answer: BCE

Right???
Hasnain Javed Khan
Ranch Hand

Joined: Nov 23, 2007
Posts: 73
Hello Kay,

You use the listener AND the listener class tag to declare/configure a listener



Hope that helps.

Kind Regards.
Hasnain Javed.
Kay Li
Greenhorn

Joined: May 11, 2009
Posts: 14
Thanks!
This helps!

Kay
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HFJS (V2) Final Mock Question 6 is wrong?