 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between extends and implements keywords in Java
In this post, we will understand the differences between ‘Extends’ and ‘Implements’ keyword.
Extends
- Using this, a class can be used as a base class, and another class inherits this base class. 
- An interface can also inherit other interfaces using this keyword. 
- Only one superclass can be extended by a class. 
- Any number of interfaces can be extended by an interface. 
- It is not required for the subclass (that extends a superclass) to override all the methods in the superclass. 
Following is an example of the extends keyword −
Example
class Super { ..... ..... } class Sub extends Super { ..... ..... } Implements
- This keyword helps a class to implement an interface. 
- A class can implement any number of interfaces at a point in time. 
- It is required for a class (that implements an interface) to implement all the methods of that specific interface. 
- It can never be used implement any other interface. 
Following is an example of the implements keyword
Example
public interface Animal { } public class Mammal implements Animal { } public class Dog extends Mammal { }