Source and listener

What do you mean by the term source and listener?

E

Expert

Verified

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 : Define Peer Peer : It is a term

    Peer: It is a term employed of the Abstract Windowing Toolkit (AWT) to refer to the underlying classes which give the platform-specific implementation of the component classes.

  • Q : What are the valid and invalid XHTML

    What are the valid and invalid XHTML element names?

  • Q : Explain the way to write the opening

    Explain the way to write the opening tag of an XHTML element.

  • Q : Default function arguments C++ allows

    C++ allows us to call

  • Q : Describe Multiple-boot options

    Multiple-boot options: The hardware configurations of several computers are capable to run various operating system and window manager combinations. A few systems permit a user to select which combination they wish to utilize during a specific session

  • Q : Define Java Archive file Java Archive

    Java Archive file: It is a Java Archive (JAR) file which makes it possible to store multiple bytecode files within a single file.

  • Q : Explain Information hiding Information

    Information hiding: The practice of making sure that only as much information is exposed regarding the implementation of a class as is strictly needed. Hiding needless knowledge of implementation makes it not as much of likely that other classes will

  • Q : Explain Swing Swing : The Swing classes

    Swing: The Swing classes are portion of a wider collection termed as the Java Foundation Classes (abbreviated as JFC). The swing classes are stated in the javax.swing packages. They give a further set of components which extend the capabilities of Abs

  • Q : Explain Array initializer Array

    Array initializer: This is an initializer for an array. The initializer takes the position of separate creation and initialization steps. For example, the initializer

    int[] pair = { 4, 2, };

    Q : What is a Pipe Pipe : It is a linkage

    Pipe: It is a linkage between the two program components. One component responds as a source of data, and writes into the pipe. The second components act as a receiver (that is, sink) for the data and reads from pipe.

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