| Author |
JavaBean Listener
|
Asif sheikh
Greenhorn
Joined: Jul 24, 2012
Posts: 3
|
|
Any one help one the below :-
i found that on http://www.searchcrone.com
Given the following six method names:
addListener
addMouseListener
setMouseListener
deleteMouseListener
removeMouseListener
registerMouseListener
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: 867
|
|
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 http://www.coderanch.com/t/262282/java-programmer-...tion/JavaBeans-naming-standard
http://www.coderanch.com/t/257589/java-programmer-...tification/SCJP-Errata-Updated
|
OCPJP 6(100 %) OCEWCD 6(91 %)
|
 |
Asif sheikh
Greenhorn
Joined: Jul 24, 2012
Posts: 3
|
|
|
Thanks Gutpreet....i get it
|
 |
 |
|
|
subject: JavaBean Listener
|
|
|