This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Whenever you delegate a certain responsibility to the language or the s/w before commiting anything ,sometimes, it calls a function ( user defiened ). it is here that the user gets the chance to do some clean up activities.. These are called as call-back functions.. I can give u some examples.. One can think of finalize() as a call-back function.. Before the JVM takes the object for garbage collection it calls the finalize method of that object, in which the user can write some clean up activities...in a way the control is passed from the JVM "back" to the user obj. another example i can think of is from the entity beans of EJB framework. In container managed persistant entity beans all the database commit's and rollback are handles by the EJB container. But before any commit or rollback is fired methods are called in the users EJB where the user has the chance to do any activites before the database commits or rollbacks. Hope this is of some help. Kaustubh.