java interface | Sololearn: Learn to code for FREE!


java interface

But how if two interface extends and how we implement the method,as i known interface will cause its method abstract

4/18/2019 9:16:04 AM


1 Answer

New Answer


If you want to implement two interfaces you can do: implements ActionListener, MouseListener If you implement you need to import all the methods of that interface. But if you only want to import one method of that interface you will have to use MouseAdapter instead of MouseListener and then we use the extends keyword instead: extends MouseAdapter If you use any IDE you can choose to import all of the methods so you dont have to write it by your self