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

Explain the steps in details to load the server object dynamically?

4809


What is aop(assepct oriented programing)?

802


What is the purpose of the finally clause of a try-catch-finally statement?

792


What is a session? Can you share a session object between different theads?

775


What modifiers may be used with an interface declaration?

819


What is synchronization and why is it important?

775


What is the difference between RMI and Corba?

2491


How would you create a button with rounded edges?

770


what is Activation Instantinator?

2133


What value does read() return when it has reached the end of a file?

769


What you mean by COM and DCOM?

834


What are the difference between RMI and CORBA?

843


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

770


What are the pros and cons of detached objects?

760


Explain the difference between object state and behavior?

780