Listeners issue

Hi I have seen some questions in mock exams where I have options as HttpSessionBindingListener and HttpSessionAttributeListener classes. Since both the listeners roughly achieve the same functionality.I am not able to figure out which one will be invoked. Plz give insight on this issue. Kunal