my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes JavaBean Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "JavaBean Listener" Watch "JavaBean Listener" New topic

JavaBean Listener

Asif sheikh

Joined: Jul 24, 2012
Posts: 3
Any one help one the below :-

i found that on

Given the following six method names:

How many of these method names follow JavaBean Listener naming rules?

the answer is 2 according to site but i think answer is 3 because addListener, addMouseListener and removeMouseListener is right answer...

please suggest ...thankx in advance
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924

the correct answer is 2. addListener is not a valid java bean name. why ? Please look into the following threads and you will come to know.

this will help
Asif sheikh

Joined: Jul 24, 2012
Posts: 3
Thanks Gutpreet....i get it
Consider Paul's rocket mass heater.
subject: JavaBean Listener
Similar Threads
JavaBean naming standard
JavaBeans standards
How to add own Listener if add method is not supported?
Passed SCJP5 with 100%
Valid JavaBean name