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 rmic?

4 Answers  


Name the method to find, if a thread is active or not?

2 Answers  


1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  


wahts is mean by dynavalidatorform in struts/

1 Answers   SolutionNET,


What is ioc concept?

0 Answers  






What are the various thread priorities?

1 Answers  


What are the different approaches to represent an inheritance hierarchy?

0 Answers  


whats is mean by jndi

4 Answers   SolutionNET,


Can you give me a simple example of using the requiredif validator rule?

0 Answers  


What does module-relative mean?

0 Answers  


Is the session factory thread safe?

0 Answers  


What is a task?s priority?

1 Answers  


Categories