• Post Reply Bookmark Topic Watch Topic
  • New Topic

HFSJ 2nd Edition Mock exam doubt

 
NishaP Raj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The following question should have the option C also checked.But the book doesnt do that.Can anyone clarify?

When creating session listeners which are true?
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.

The given answer is b and e. But i think c isalso correct. Please confirm?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If e is correct, c also looks correct to me.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!