coming to adapter class, for ex if one interface having 10 methods ,and u want to implement any 3 methods of interface then the remaining 7 methods u should manually override. if u use the Adapter class then u no need to implement/override those remaining 7 methods manually,because an Adapter classes having default implementations of all methods of the interface.so we can implement/override those methods what u want. Generally these adapter classes are used in listener interfaces
Adapeter Class:
ReplyDeletecoming to adapter class, for ex if one interface having 10 methods ,and u want to implement any 3 methods of interface then the remaining 7 methods u should manually override. if u use the Adapter class then u no need to implement/override those remaining 7 methods manually,because an Adapter classes having default implementations of all methods of the interface.so we can implement/override those methods what u want. Generally these adapter classes are used in listener interfaces