Source and listener

What do you mean by the term source and listener?




The source is an object which produces an event. This takes place when the internal state of that object changes in a certain manner. A listener is an object which is notified whenever an event takes place. It consists of two major requirements. First, it should have been registered with a source to receive the notifications regarding specific event. Second, it should implement essential methods to receive and process such notifications.

   Related Questions in Programming Languages

  • Q : State the term UDDI State the term UDDI?

    State the term UDDI?

  • Q : What is Shallow copy Shallow copy : It

    Shallow copy: It is a copy of an object in which copies of each and every object's sub-components are not as well made. For example, a shallow copy of an array of objects would outcome in two separate array objects, each having references to similar s

  • Q : Problem on linear equations using Matlab

    Use Matlab to solve the following system of linear equations:

    2x + y + 3z = 1
    2x + 6y + 8z = 3
    6x + 8y + 18z = 5

    Capture Matlab code and the result in a text file.

  • Q : Explain Package declaration Package

    Package declaration: It is a declaration employed to name a package. This should be the first item in the source file, preceding any import statements. For example,


  • Q : Passing by address or reference Passing

    Passing by address or reference: In this technique no separate memory build for formal variables that is, formal variables share similar location of actual variables and therefore any change on formal variables automatically reflected back to real var

  • Q : Web based programming homework

    Component 2 Task b: Task Description

    Computing students at this University who study on undergraduate courses require a method to view their module marks and to see how they are progressing on the module.

    You have been asked to develop a web

  • Q : Programming analysis and design

    Illustrate the term programming analysis and design in brief.

  • Q : Define Well-known port Well-known port

    Well-known port: It is a port number at which a server provides a familiar service. For example, 80 is well-known port number for the servers employing the HyperText Transfer Protocol (abbreviated as HTTP).

  • Q : Swapping system What action of the

    What action of the swapping system does in case it identifies the illegal page for the swapping?

  • Q : Define Reserved word Reserved word : It

    Reserved word: It is a word reserved for a particular purpose in Java, like: class, int, public, and so forth. These words might not be employed as ordinary identifiers.

2015 ©TutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.