Results 1 to 2 of 2
  1. #1
    Minu is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default question on listener interface

    which interface must a class implement so that instances of the class are notified after any object is added to a session?
    A. javax.servlet.http.HttpSessionListener
    B. javax.servlet.http.HttpSessionValueListener
    C. javax.servlet.http.HttpSessionBindingListener
    D. javax.servlet.http.HttpSessionAttributeListener

    the correct answer is D while i think it should be C.

    Could somebody tell which is the correct answer and why?

  2. #2
    peppem is offline Member
    Join Date
    Jan 2009
    Location
    italy
    Posts
    16
    Rep Power
    0

    Default

    In this post there is an example about the interfaces differences
    http // w w w .coderanch.com/t/171721/Web-Component-Certification-SCWCD/HttpSessionBindingListener-HttpSessionAttributeListener

    By reading this post and relative test, I think that both C, and D response are correct.
    Article and examples about Java EE world
    http://programmaremobile.blogspot.com

Similar Threads

  1. Listener for print job
    By pjmorce in forum Advanced Java
    Replies: 1
    Last Post: 11-14-2008, 08:02 AM
  2. Interface question in java
    By tony404 in forum Advanced Java
    Replies: 2
    Last Post: 06-27-2008, 11:47 AM
  3. Regarding Listener
    By adeeb in forum AWT / Swing
    Replies: 2
    Last Post: 06-20-2008, 11:07 PM
  4. Regarding Listener
    By adeeb in forum AWT / Swing
    Replies: 2
    Last Post: 06-10-2008, 02:00 AM
  5. Listener for SWT event
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-08-2008, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •