What is adapter class?

Answer Posted / rajat patel

An adapter class is an implementation class of listener interface which contain all methods implemented with empty body.For e.g WindowAdapter is an adapter of WindowListener interface. Adapter class reduce overhead on programming while working with listener interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is maximum size of arraylist in java?

684


Can one thread block the other thread?

778


Explain the scope or life time of class variables or static variables?

726


What is java used for on a computer?

705


What is mutable object and immutable object?

860


What is backdrop?

788


What is the difference between Java and C++?

824


What is stack class in java?

752


Do you know why doesn't the java library use a randomized version of quicksort?

723


What is a line break?

783


What is variable and rules of variable?

736


Similarity and difference between static block and static method ?

711


How many types of methods are there?

732


How variables are stored in memory?

712


What is difference between Heap and Stack Memory?

732