Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question about Listeners

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Just curious about the following:

A) How often are Listeners used in real-world Servlets?

B) How often are Listeners used/questioned in the exam?

From a personal standpoint, I can see listeners being useful at specific times, but not used a lot and not common (seen maybe once or twice in a webapp)

However, I'm worried that this is one of those things that will be on the exam that is pounded on even though it doesn't hold as high of a value in the real world. I've just noticed that in other exams I have taken for C, C++ and PHP that for some reason the exam creators pick some obscure and not commonly used feature and pound it into the exam multiple times neglecting a real-world perspective just to trick the exam taker.

Although, since I'm new to Java and Servlet/JSP technology, I am probably wrong. Just a guess at first glance.

So, are they used a lot in real-world applications? If so or even if not, how often are then on the exam?
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Since the listeners for the context and session were introduced, I rarely see a new application that does not use them. I also do quite a bit of training, and I cannot tell you how often a student asks a question where the answer has to do with implementing a listener. I would go so far as to say that if applications are not using listeners, then it probably has to do with programmers not knowing how to leverage the technology properly.

As for the exam, you can expect two questions at the very least.

-Cameron McKenzie
 
Dean Jones
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hmm... maybe an instance of how they're used typically?

I'm used to PHP for web development and listeners aren't really there, so I just can't see an way of using them with my current mindset...
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closed in favor of this post.
 
    Bookmark Topic Watch Topic
  • New Topic