• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Listners

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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].
Ans B,C
But I think C is not correct. Pls help.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
as u said if said c is not correct u r contradicting the fist ans,
which says multiple listeners can be added to a component,if the
original copy is sent(i.e call by value)it can be received by only one listener ,so c is correct
fedback pls,
with regards ,
krishna
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Joe Casad:
Which statements are true about listeners?
A.The return value from a listener is of boolean type. //FALSE, the return type is void
B.Most components allow multiple listeners to be added. // TRUE
C.A copy of the original event is passed into a listener method. // FALSE, a copy of reference is passed
D.If multiple listeners are added to a single component, they all must all be friends to each other. // FALSE
E. If the multiple listeners are added to a single component, the order [in which listeners are called is guaranteed]. // FALSE, the order is NOT guaranteed
Ans B only
regards,
YingXing
 
Sasparilla and fresh horses for all my men! You will see to it, won't you tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic