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

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

780


What is the enumerator of the java collection framework? : java collections

811


What are the types of interface used in the java collections? : java collections

819


What are the main classes of the list interfaces? : java collections

805


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

809


What is the use of the list interface in the java collection? : java collections

835


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

2804


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

776


What are the types of java collections? : java collections

772


What are the different types of features of the java collections framework? : java collections

847


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

788


what is mean by hasing and maping in java platform and advantage?

2134


Which interface does java.util.hashtable implement?

953


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

2144


How do I find jre path in windows?

770