This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Last night I was going through the listeners(ServletContextListener...) in HFSJ. Do we have to remember all the method names in all those 8 listener interfaces. What sort of questions are asked in the exam from the listener perspective. Any leads ?
Yes you have to know the listeners, the method names, the method parameters (the actual event classes), AND the method available from the event. For exemple, know that HttpSessionEvent has a getSession() method to access the session your listening to.
Know also when listeners are loaded and in which order. Know in which order they are invoked (both during webapp life and at webapp shutdown time (reverse order for this one)).
This is not a great amount of work, but definitely necessary.