SCJP 1.6版考題 068

出自 陳富國維基館
前往: 導覽搜尋
Given the following six method names:
addListener
addMouseListener
setMouseListener
deleteMouseListener
removeMouseListener
registerMouseListener

 
How many of these method names follow JavaBean Listener naming rules?
  A. 1
  B. 2
  C. 3
  D. 4
  E. 5

解答


Ans: B

解說: - public void add<ListenerType>(<ListenerType> listener)- public void remove<ListenerType>(<ListenerType> listener)