What is source and listener?

Answer Posted / janet

Source: A source is an object that generates an event.this
occurs when the internal state of that object changes in
some way.
Listener: A listener is an object that is notified when an
event occurs.It has two major requirements First,it must
have been registered with one or more sources to receive
notifications about specific types of events.Second,it must
implement methods to receive and process these
notifications.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are component architectures useful?

572


What is the difference between RMI and Corba?

2255


What are the benefits of detached objects?

582


Why is actionform a base class rather than an interface?

568


What is chat area? Explain.

553






What are the different class loaders used by jvm?

597


Explain the difference between object state and behavior?

563


What is the difference between the string and stringbuffer classes?

543


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1732


What is the purpose of the wait(), notify(), and notifyall() methods?

566


Explain RMI Architecture?

606


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

568


What happens when a thread cannot acquire a lock on an object?

535


What is threadfactory?

614


Difference between DurableSubscription and non- DurableSubscription?

1714