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

int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

0 Answers  


What is preemptive and Non-preemptive Time Scheduling?

6 Answers   Cognizant,


What is DTD?

3 Answers   Wipro,


Name three component subclasses that support painting?

0 Answers  


What is codebase in applet?

2 Answers  






What is a compilation unit?

1 Answers  


Is infobus easy to use?

0 Answers  


Can you control when passivation occurs?

0 Answers  


What are the different methods of identifying an object?

0 Answers  


How are the elements of a borderlayout organized?

0 Answers  


How a component can be placed on Windows?

0 Answers   Wipro,


What is servlet preinitialization

1 Answers   iFlex,


Categories