what are callback methods?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1576


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

545


How is hashset maintained in memory by java ?

588


Which interface does java.util.hashtable implement?

665


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

1865






What are maps interfaces in the java collections? : java collections

567


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

566


What are the types of the main implementing classes in the map interfaces? : java collections

611


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2561


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

1675


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

572


What is the use of hashcode in java ?

572


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1592


my interviewer asked me what technical specification you used how to answer that question

1929


please mail me the interview question based on java/j2ee

1530