posted 13 years ago
As you know the difference between Interface and Abstract class, you must be knowing that when we implement any Interface, we need to implement all methods in interface, but this is not the case with abstract classes, abstract class can exist without abstract function, and hence if we extend extend class you can override the methods of your interest only.
Example: if yo want to write event on MouseClick only, then there is no need to use MouseListener interface for it, you can simply use MouseAdapter and override required method. And if you want to write code for every event generated by mouse you can use MouseListener interface .