Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

who should use JNDI?

1 Answers  


How to call the m1() method of Base class in below snippet ? class Base { public void m1() { System.out.println("Base m1 "); } public void m2() { System.out.println("Base m1 "); } } ====================== class Derived extends Base { public void m1() { System.out.println("Derived m1"); } public void m3() { System.out.println("Derived m3"); } public static void main(String[] args) { Base ob=new Derived(); ob.m1(); //System.out.println("Hello World!"+ob.m1()); } }

6 Answers   Cap Gemini, TCS,


wnet use DAO design in u r project?

1 Answers   Godrej,


what is the diffrence between insurance and telecom domain?

1 Answers  


What is iterator in the java collections framework? : java collections

0 Answers  


In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?

2 Answers   Cap Gemini,


when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling

0 Answers  


What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

0 Answers  


Difference between Spring framework and Struts framework?

12 Answers   IBM, L&T, VAM,


what is difference between web server and application server?

1 Answers   L&T,


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


Categories