what are callback methods?

Answers were Sorted based on User's Feedback



what are callback methods?..

Answer / ashok

Callback methods are those which are called automatically
by the application/system when a particular condition has
been met.It could be Event handling, or methods in servlet
life cycle etc.eg: Servlets callback method destroy() will
be called by the container while container is shutting
down.

Is This Answer Correct ?    114 Yes 5 No

what are callback methods?..

Answer / robz

This type of methods are generally called by the container,
the developer does not need to call these methods
explicitly. Most of the languages specifies the callback
method by passing the address of the subroutine to the
system to the request is calling back from, But java
performs the same thing by using interfaces. Java does not
allow passing the address of subroutine but allows passing
an instance of a class that implements the standard
interface. For this purpose anonymous classes are mainly
used as they support a better compact definition of the
class that is required as a new class.

Is This Answer Correct ?    7 Yes 1 No

what are callback methods?..

Answer / shakir khan

These methods allow the container to notify the bean of
events in its life cycle.These methods are defined in
javax.ejb.EntityBean

Is This Answer Correct ?    18 Yes 41 No

Post New Answer

More Java J2EE AllOther Interview Questions

httt method

2 Answers   HCL,


What is an algorithm in java collection framework? : java collections

0 Answers  


How many controlers are there in spring? Plz send me ans

1 Answers   HCL,


What are the uses of the set interfaces in the java collections? : java collections

0 Answers  


What are the different types of ways where you can iterate over a list? : java collections

0 Answers  


What are the classes in the java collection framework? : java collections

0 Answers  


What is difference between Application Server and Web Server?

1 Answers   Logica CMG, SCS,


what is the difference between banking and insurance domain?

2 Answers  


wnet use DAO design in u r project?

1 Answers   Godrej,


What do you understand by synchronization? Why is it important?

0 Answers  


How is hashset maintained in memory by java ?

0 Answers  


Write a interface "CarOperations" with the following methods void turnOnEngin() void turnOffEngin() void turnOnLigths() void turnOffLights() void turnLeft() void turnRight() void accelerate() void deaccelerate() void putBreaks() void releaseBreaks()

1 Answers  


Categories