Which statements are true about listeners?      A. The return value from a listener is of boolean type.    B. Most components allow multiple listeners to be added.    C. A copy of the original event is passed into a listener method.    D. If multiple listeners are added to a single component, they all must all be friends to each other.    E. If the multiple listeners are added to a single component, the order [in which listeners are called is guaranteed]

解决方案 »

  1.   

    i reckon it's supposed to be B and C
    First not necessarily should the listener return a value not to mention a boolean or sth else whatever
    Second listeners have nothing to do with each other including their sequences when being called, for instance, MouseListener and KeyListener
    If anything wrong, sorry in advance
      

  2.   

    1楼正解
    btw,LZ你连题目都直接给的英文,想必能看明白1楼的,如果不是,哎....
      

  3.   

    A肯定不是,listener 跟返回类型没有联系
    B没错,一个组件允许添加多个listener
    C是传进来了
    D listener还要互相友好? 不解
    因该是BC.