{"id":25527737,"date":"2022-06-10T18:38:59","date_gmt":"2022-06-10T13:08:59","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25527737"},"modified":"2022-11-23T15:42:15","modified_gmt":"2022-11-23T10:12:15","slug":"what-is-the-difference-between-extends-and-implements-in-java","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/","title":{"rendered":"What is the Difference Between Extends and Implements in Java?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e3c05aa42ae\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e3c05aa42ae\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#Implements_vs_Extends\" >Implements vs Extends<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#Extends\" >Extends<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#Implements\" >Implements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#Difference_between_Implements_and_Extends\" >Difference between Implements and Extends<\/a><\/li><\/ul><\/nav><\/div>\n<div>\n<div class=\"article-title\">\n<h1><\/h1>\n<\/div>\n<\/div>\n<div class=\"text\">\n<p>Inheritance\u00a0is an important pillar of\u00a0OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features(fields and methods) of another class. There are two main keywords,\u00a0<strong>\u201cextends\u201d<\/strong>\u00a0and\u00a0<strong>\u201cimplements\u201d<\/strong>\u00a0which are used in Java for inheritance. In this article, the difference between extends and implements is discussed.<\/p>\n<p>Before learning about the differences, lets first understand in what scenarios each of the keywords are used.<\/p>\n<p><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25520910 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square.png\" alt=\"Python and Machine Learning Square\" width=\"345\" height=\"345\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square.png 345w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-300x300.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-150x150.png 150w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-24x24.png 24w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-48x48.png 48w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-96x96.png 96w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Square-75x75.png 75w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/a><\/p>\n<p><strong>Extends:<\/strong>\u00a0In Java, the\u00a0extends keyword is used to indicate that the class which is being defined is derived from the base class using inheritance. So basically, extends keyword is used to extend the functionality of the parent class to the subclass. In Java, multiple inheritances are not allowed due to uncertainity. Therefore, a class can extend only one class to avoid uncertainity.<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\">Learn Coding in your Language! Enroll Here!<\/a><\/strong><\/p>\n<div id=\"GFG_AD_gfg_mobile_336x280\"><\/div>\n<p><strong>Example:<\/strong><\/p>\n<div class=\"noIdeBtnDiv\">\n<div class=\"code-block\">\n<div class=\"code-container\">\n<div id=\"highlighter_568881\" class=\"syntaxhighlighter nogutter\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"keyword\">class<\/code> <code class=\"plain\">One {<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodOne()<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">{<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Some Functionality<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"keyword\">class<\/code> <code class=\"plain\">Two <\/code><code class=\"keyword\">extends<\/code> <code class=\"plain\">One {<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">static<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">main(String args[])<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">{<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">Two t = <\/code><code class=\"keyword\">new<\/code> <code class=\"plain\">Two();<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Calls the method one<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ of the above class<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">t.methodOne();<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"plain\">}<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>Implements:<\/strong>\u00a0In Java, the\u00a0implements\u00a0keyword is used to implement an\u00a0interface. An interface is a special type of class which implements a complete abstraction and only contains\u00a0abstract methods. To access the interface methods, the interface must be \u201cimplemented\u201d by another class with the implements keyword and the methods need to be implemented in the class which is inheriting the properties of the interface. Since an interface is not having the implementation of the methods, a class can implement any number of interfaces at a time.<\/p>\n<p><strong>Example<\/strong><\/p>\n<div class=\"noIdeBtnDiv\">\n<div class=\"code-block\">\n<div class=\"code-container\">\n<div id=\"highlighter_796344\" class=\"syntaxhighlighter nogutter\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"comments\">\/\/ Defining an interface<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"keyword\">interface<\/code> <code class=\"plain\">One {<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodOne();<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"comments\">\/\/ Defining the second interface<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"keyword\">interface<\/code> <code class=\"plain\">Two {<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodTwo();<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"comments\">\/\/ Implementing the two interfaces<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"keyword\">class<\/code> <code class=\"plain\">Three <\/code><code class=\"keyword\">implements<\/code> <code class=\"plain\">One, Two {<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodOne()<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">{<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Implementation of the method<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodTwo()<\/code><\/div>\n<div class=\"line number20 index19 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">{<\/code><\/div>\n<div class=\"line number21 index20 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number22 index21 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Implementation of the method<\/code><\/div>\n<div class=\"line number23 index22 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number24 index23 alt1\"><code class=\"plain\">}<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>Note:<\/strong>\u00a0A class can extend a class and can implement any number of interfaces simultaneously.<\/p>\n<p><strong>Example<\/strong><\/p>\n<div class=\"noIdeBtnDiv\">\n<div class=\"code-block\">\n<div class=\"code-container\">\n<div id=\"highlighter_224475\" class=\"syntaxhighlighter nogutter\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"comments\">\/\/ Defining the interface<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"keyword\">interface<\/code> <code class=\"plain\">One {<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Abstract method<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">void<\/code> <code class=\"plain\">methodOne();<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"comments\">\/\/ Defining a class<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"keyword\">class<\/code> <code class=\"plain\">Two {<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Defining a method<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodTwo()<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">{<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number16 index15 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"comments\">\/\/ Class which extends the class Two<\/code><\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"comments\">\/\/ and implements the interface One<\/code><\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"keyword\">class<\/code> <code class=\"plain\">Three <\/code><code class=\"keyword\">extends<\/code> <code class=\"plain\">Two <\/code><code class=\"keyword\">implements<\/code> <code class=\"plain\">One {<\/code><\/div>\n<div class=\"line number20 index19 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number21 index20 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">public<\/code> <code class=\"keyword\">void<\/code> <code class=\"plain\">methodOne()<\/code><\/div>\n<div class=\"line number22 index21 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">{<\/code><\/div>\n<div class=\"line number23 index22 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number24 index23 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"comments\">\/\/ Implementation of the method<\/code><\/div>\n<div class=\"line number25 index24 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number26 index25 alt1\"><code class=\"plain\">}<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>Note:<\/strong>\u00a0An interface can extend any number of interfaces at a time.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><strong>Learn to code from industry experts! Enroll here<\/strong><\/a><\/p>\n<p><strong>Example:<\/strong><\/p>\n<div class=\"noIdeBtnDiv\">\n<div class=\"code-block\">\n<div class=\"code-container\">\n<div id=\"highlighter_290480\" class=\"syntaxhighlighter nogutter\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"comments\">\/\/ Defining the interface One<\/code><\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"keyword\">interface<\/code> <code class=\"plain\">One {<\/code><\/div>\n<div class=\"line number3 index2 alt2\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">void<\/code> <code class=\"plain\">methodOne();<\/code><\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"comments\">\/\/ Defining the interface Two<\/code><\/div>\n<div class=\"line number7 index6 alt2\"><code class=\"keyword\">interface<\/code> <code class=\"plain\">Two {<\/code><\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"undefined spaces\">\u00a0\u00a0\u00a0\u00a0<\/code><code class=\"keyword\">void<\/code> <code class=\"plain\">methodTwo();<\/code><\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"plain\">}<\/code><\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"undefined spaces\">\u00a0<\/code><\/div>\n<div class=\"line number11 index10 alt2\"><code class=\"comments\">\/\/ Interface extending both the<\/code><\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"comments\">\/\/ defined interfaces<\/code><\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"keyword\">interface<\/code> <code class=\"plain\">Three <\/code><code class=\"keyword\">extends<\/code> <code class=\"plain\">One, Two {<\/code><\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"plain\">}<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h2 class=\"txtcolor\"><span class=\"ez-toc-section\" id=\"Implements_vs_Extends\"><\/span><strong>Implements vs Extends<br \/>\n<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p>Implements and Extends are two keywords found in Java programming language that provides a means of transferring added functionality to a new class. Implements keyword is used explicitly for implementing an interface, while Extends keyword is used for inheriting from a (super) class. Please note that the concepts of inheritance and interfaces are present in most of the other object oriented programming languages like C# and VB.NET, but they offer different syntax or keywords for applying those concepts.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Extends\"><\/span><strong>Extends<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Extends keyword is used to implement the concept of inheritance in Java programming language. Inheritance essentially provides code reuse by allowing extending properties and behavior of an existing class by a newly defined class. When a new subclass (or derived class) extends a super class (or parent class) that subclass will inherit all attributes and methods of the super class. The subclass can optionally override the behavior (provide new or extended functionality to methods) inherited from the parent class. A subclass cannot extend multiple super classes in Java. Therefore, you cannot use extends for multiple inheritance. In order to have multiple inheritance, you need to use interfaces as explained below.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Implements\"><\/span><strong>Implements<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Implements keyword in Java programming language is used for implementing an interface by a class. An interface in Java is an abstract type that is used to specify a contract that should be implemented by classes, which implement that interface. Usually an interface will only contain method signatures and constant declarations. Any interface that implements a particular interface should implement all methods defined in the interface, or should be declared as an abstract class. In Java, the type of an object reference can be defined as an interface type. But that object must either be null or should hold an object of a class, which implements that particular interface. Using Implements keyword in Java, you can implement multiple interfaces to a single class. An Interface cannot implement another interface. However an interface can extend a class.<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\">Grab the opportunity to learn Python with Entri! Click Here<\/a><\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Difference_between_Implements_and_Extends\"><\/span><strong>Difference between Implements and Extends<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Although, Implements and Extends are two keywords that provide a mechanism to inherit attributes and behavior to a class in Java programming language, they are used for two different purposes. Implements keyword is used for a class to implement a certain interface, while Extends keyword is used for a subclass to extend from a super class. When a class implements an interface, that class needs to implement all the methods defined in the interface, but when a subclass extends a super class, it may or may not override the methods included in the parent class. Finally, another key difference between Implements and Extends is that, a class can implement multiple interfaces but it can only extend from one super class in Java. In general, usage of Implements (interfaces) is considered more favorable compared to the usage of Extends (inheritance), for several reasons like higher flexibility and the ability to minimize coupling. Therefore in practice, programming to an interface is preferred over extending from base classes.<\/p>\n<p><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25522670 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png\" alt=\"Python and Machine Learning Rectangle\" width=\"970\" height=\"250\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png 970w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-300x77.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-768x198.png 768w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-750x193.png 750w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p>The following table explains the difference between the extends and interface:<\/p>\n<table width=\"100%\">\n<thead>\n<tr>\n<th>S.No.<\/th>\n<th>Extends<\/th>\n<th>Implements<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1.<\/td>\n<td>By using \u201cextends\u201d keyword a class can inherit another class, or an interface can inherit other interfaces<\/td>\n<td>By using \u201cimplements\u201d keyword a class can implement an interface<\/td>\n<\/tr>\n<tr>\n<td>2.<\/td>\n<td>It is not compulsory that subclass that extends a superclass override all the methods in a superclass.<\/td>\n<td>It is compulsory that class implementing an interface has to implement all the methods of that interface.<\/td>\n<\/tr>\n<tr>\n<td>3.<\/td>\n<td>Only one superclass can be extended by a class.<\/td>\n<td>A class can implement any number of an interface at a time<\/td>\n<\/tr>\n<tr>\n<td>4.<\/td>\n<td>Any number of interfaces can be extended by interface.<\/td>\n<td>An interface can never implement any other interface<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Inheritance\u00a0is an important pillar of\u00a0OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features(fields and methods) of another class. There are two main keywords,\u00a0\u201cextends\u201d\u00a0and\u00a0\u201cimplements\u201d\u00a0which are used in Java for inheritance. In this article, the difference between extends and implements is discussed. Before learning about the differences, [&hellip;]<\/p>\n","protected":false},"author":111,"featured_media":25527905,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1882],"tags":[],"class_list":["post-25527737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-java-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is the Difference Between Extends and Implements in Java? - Entri Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the Difference Between Extends and Implements in Java? - Entri Blog\" \/>\n<meta property=\"og:description\" content=\"Inheritance\u00a0is an important pillar of\u00a0OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features(fields and methods) of another class. There are two main keywords,\u00a0\u201cextends\u201d\u00a0and\u00a0\u201cimplements\u201d\u00a0which are used in Java for inheritance. In this article, the difference between extends and implements is discussed. Before learning about the differences, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-10T13:08:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-23T10:12:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Feeba Mahin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Feeba Mahin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\"},\"author\":{\"name\":\"Feeba Mahin\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36\"},\"headline\":\"What is the Difference Between Extends and Implements in Java?\",\"datePublished\":\"2022-06-10T13:08:59+00:00\",\"dateModified\":\"2022-11-23T10:12:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\"},\"wordCount\":906,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png\",\"articleSection\":[\"Articles\",\"Java Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\",\"url\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\",\"name\":\"What is the Difference Between Extends and Implements in Java? - Entri Blog\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png\",\"datePublished\":\"2022-06-10T13:08:59+00:00\",\"dateModified\":\"2022-11-23T10:12:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png\",\"width\":820,\"height\":615,\"caption\":\"What is the Difference Between Extends and Implements in Java\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entri Skilling\",\"item\":\"https:\/\/entri.app\/blog\/category\/entri-skilling\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Java Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/entri-skilling\/java-programming\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"What is the Difference Between Extends and Implements in Java?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36\",\"name\":\"Feeba Mahin\",\"url\":\"https:\/\/entri.app\/blog\/author\/feeba123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the Difference Between Extends and Implements in Java? - Entri Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/","og_locale":"en_US","og_type":"article","og_title":"What is the Difference Between Extends and Implements in Java? - Entri Blog","og_description":"Inheritance\u00a0is an important pillar of\u00a0OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features(fields and methods) of another class. There are two main keywords,\u00a0\u201cextends\u201d\u00a0and\u00a0\u201cimplements\u201d\u00a0which are used in Java for inheritance. In this article, the difference between extends and implements is discussed. Before learning about the differences, [&hellip;]","og_url":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2022-06-10T13:08:59+00:00","article_modified_time":"2022-11-23T10:12:15+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png","type":"image\/png"}],"author":"Feeba Mahin","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Feeba Mahin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/"},"author":{"name":"Feeba Mahin","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36"},"headline":"What is the Difference Between Extends and Implements in Java?","datePublished":"2022-06-10T13:08:59+00:00","dateModified":"2022-11-23T10:12:15+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/"},"wordCount":906,"commentCount":0,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png","articleSection":["Articles","Java Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/","url":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/","name":"What is the Difference Between Extends and Implements in Java? - Entri Blog","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png","datePublished":"2022-06-10T13:08:59+00:00","dateModified":"2022-11-23T10:12:15+00:00","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/06\/What-is-the-Difference-Between-Extends-and-Implements-in-Java.png","width":820,"height":615,"caption":"What is the Difference Between Extends and Implements in Java"},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/what-is-the-difference-between-extends-and-implements-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Entri Skilling","item":"https:\/\/entri.app\/blog\/category\/entri-skilling\/"},{"@type":"ListItem","position":3,"name":"Java Programming","item":"https:\/\/entri.app\/blog\/category\/entri-skilling\/java-programming\/"},{"@type":"ListItem","position":4,"name":"What is the Difference Between Extends and Implements in Java?"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/f036dab84abae3dcc9390a1110d95d36","name":"Feeba Mahin","url":"https:\/\/entri.app\/blog\/author\/feeba123\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25527737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25527737"}],"version-history":[{"count":6,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25527737\/revisions"}],"predecessor-version":[{"id":25548045,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25527737\/revisions\/25548045"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25527905"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25527737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25527737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25527737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}