SCJP Certification

Sun Certified Java Programmer Certification exam essentials

August 16th, 2010

What are the JavaBean listener naming rules?

Sun Java Certifications, by Daisy Williams.

JavaBean is a reusable software component that can be visually manipulated using the builder tool. The following are the JavaBean Listener naming rules:

  • Listener method names that are used to register a listener with an event source must use the prefix add followed by the listener type.
  • Listener method names that are used to remove a listener must use the prefix remove followed by the listener type.
  • The type of listener to be added or removed must be passed as the argument to the method.
  • Listener method names must end with the word “Listener”.
Share

Back Top

Responses to “What are the JavaBean listener naming rules?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*