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

What is a class loader? What are the different class loaders used by jvm?

0 Answers  


whats is mean by connectionpooling

2 Answers   SolutionNET,


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

2 Answers  


the use of try and ffinally keyword

1 Answers  


what are design patterns in java?give with example?

2 Answers   HCL, iGate,






What is bean? Where can it be used?

0 Answers  


Define the remote object implementation?

0 Answers  


what is a dirty read?

1 Answers  


Is “abc” a primitive value?

0 Answers  


Can a thread be a member of another thread?

2 Answers  


How would you create a button with rounded edges?

0 Answers  


what is the Scope of Final Keyword in Java?

1 Answers   HCL,


Categories