What is source and listener?



What is source and listener?..

Answer / 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

More Advanced Java Interview Questions

difference between  ejb,struts,hibernate,spring and jsp

0 Answers  


Why won’t the jvm terminate when I close all the application windows?

0 Answers  


Can we have more than one action servlet?

7 Answers   HP,


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

0 Answers  


How JNDI is used in JMS ?

1 Answers  






Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.

4 Answers   HeadStrong,


What is difference RMI registry and OSAgent?

1 Answers  


how can we load a file of a user in the database table?

3 Answers   ITC Infotech,


What is RMI architecture?

11 Answers   Infosys,


how java is os independent language ?

3 Answers  


What is servlet preinitialization?

3 Answers   iFlex,


Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  


Categories