

{"id":6517,"date":"2018-01-25T09:41:40","date_gmt":"2018-01-25T09:41:40","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=6517"},"modified":"2026-05-18T12:33:15","modified_gmt":"2026-05-18T07:03:15","slug":"access-modifiers-in-java","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/","title":{"rendered":"Access Modifiers in Java &#8211; Enhance Your Programming Skills"},"content":{"rendered":"<p>Access modifiers in Java serve the purpose of limiting the access of particular entities in a program. Consider the real-life example of a bank.<\/p>\n<p>The address of the bank is available to all. This is open publicly so that everyone in and around knows about the presence of the bank. However, protection is there on passwords or the access PIN\u2019s of individual account holders in the bank, i.e only the bank and the account holder knows the PIN. No other person has access to a particular detail. This is done in programming by defining access as we shall learn in this article.<\/p>\n<h3>Access Modifiers in Java<\/h3>\n<p>Access modifier in Java is the reserve keyword which limits or allows particular entities such as classes, methods to be accessible by other entities in the program. It simpler words, it restricts the scope of the particular class, variable or method.<\/p>\n<p>Access modifiers play a significant role in inheritance, which is a fundamental object-oriented programming concept. Inheritance allows you to create new classes (subclasses) that inherit properties and behaviours from existing classes (superclasses). Access modifiers determine which inherited members (variables and methods) can be accessed by subclasses. For example, a private member of a superclass is inaccessible to its subclasses, while a protected member can be accessed by subclasses but not by classes outside the inheritance hierarchy. Understanding access modifiers is essential for creating well-structured and maintainable object-oriented programs in Java.<\/p>\n<p>Encapsulation is another crucial concept in object-oriented programming that promotes data hiding and protection. Access modifiers are essential tools for achieving encapsulation. By using private access modifiers for a class&#8217;s attributes, you can restrict direct access to their values.<\/p>\n<p>Instead, you can provide public methods (getters and setters) to control how these attributes are accessed and modified. This approach safeguards data integrity and promotes better code organisation. Effective use of access modifiers alongside encapsulation principles leads to more secure and robust Java applications.<\/p>\n<h3>Benefits of access modifiers in Java<\/h3>\n<ul>\n<li><strong>Security:<\/strong> Using access modifiers enables the authority of limited use of data under restrictions.<\/li>\n<li><strong>Data Integrity:<\/strong> It maintains the integrity of the information such that outer entities cannot modify or share the important information.<\/li>\n<li><strong>Limited access:<\/strong> Access modifiers such as Private and Protected limit the accessibility to retrieve the data.<\/li>\n<\/ul>\n<p>Access modifiers are used where personal data needs to be hidden, and authentication is required. For example, it is used in various Banking operations, login credentials, in gaming applications, etc.<\/p>\n<h3>Types of Access Modifiers in Java<\/h3>\n<p><strong>There are 4 different types of entities<\/strong><\/p>\n<p>1. Default<br \/>\n2. Public<br \/>\n3. Private<br \/>\n4. Protected<\/p>\n<h4>Default Access Modifier in Java<\/h4>\n<p>The default access modifier is assigned to a particular program entity when no access specifier is explicitly mentioned. It limits the access of all those under its scope to the package in which the class is defined. It means that classes from other packages cannot access the entity, be it a variable, a class or even a variable.<\/p>\n<p>In order to examine this, we will create two packages, p1 and p2. All of the variables in these classes will be of the default datatype.<\/p>\n<p>Let\u2019s see whether we can access it from a different package or not.<\/p>\n<p><strong>Java program to illustrate the use of the Default access modifiers:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/\/The first class\r\n\r\npackage com.dataflair.acessspecifiers.p1;\r\nimport java.io. * ;\r\npublic class AccessSpecifiers {\r\n  void speak() {\r\n    System.out.println(\"Hello DataFlair!\");\r\n  }\r\n\r\n}\r\n\r\n\/\/The second class in a different package p2\r\n\r\npackage com.dataflair.acessspecifiers.p2;\r\n\r\nimport com.dataflair.acessspecifiers.p1. * ;\r\nimport java.io. * ;\r\nclass AcessSpecifier2 {\r\n  public static void main(String[] args) throws IOException {\r\n    AccessSpecifiers ob = new AccessSpecifiers();\r\n    ob.speak();\r\n  }\r\n}<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">speak() is not declared public in com.dataflair.accessspecifiers.p1.AccessSpecifiers. Cannot be accessed from the outside package.<\/div>\n<h4>Public Access Specifier in Java<\/h4>\n<p>The public specifier has the widest access boundary ever. We can access it through classes and packages. However, there is absolutely no restriction on access to public variables, classes, or methods.<\/p>\n<p><strong>Java program to explain the concept of public access specifier:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.dataflair.acessspecifiers.p1;\r\n\r\npublic class PublicCLass1 {\r\n  public void speak() {\r\n    System.out.println(\"Hello I am speaking in public mode!\");\r\n  }\r\n}\r\n\r\n\/\/Now we include the second class of a different package\r\n\r\npackage com.dataflair.acessspecifiers.p2;\r\nimport java.io. * ;\r\nimport com.dataflair.acessspecifiers.p1. * ;\r\npublic class PublicClass2 {\r\n  public static void main(String[] args) throws IOException {\r\n    PublicCLass1 ob = new PublicCLass1();\r\n    ob.speak();\r\n  }\r\n\r\n}<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Hello I am speaking in public mode!<\/div>\n<h4>Private Access Specifier in Java<\/h4>\n<p>Private access modifiers limit the scope of access to the class within which we declare them. It means that all the methods and the variables that are private cannot be used by a different class of the same package.<\/p>\n<p>However, there are certain limitations to this access specifier. We cannot use it in top-level classes. Hence, we can access these entities only within the classes in which they are defined.<\/p>\n<p><strong>Java Program to illustrate the private access specifier:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/\/Class 1 \r\npackage com.dataflair.acessspecifiers.p1;\r\nclass PrivateCLass {\r\n  private void speak() {\r\n    System.out.println(\"Hey DataFlair I am speaking privately!\");\r\n  }\r\n}\r\n\r\n\/\/class 2\r\npackage com.dataflair.acessspecifiers.p1;\r\n\r\nimport java.io. * ;\r\nclass PrivateClass2 {\r\n  public static void main(String[] args) throws IOException {\r\n    PrivateCLass ob = new PrivateCLass();\r\n    ob.speak();\r\n  }\r\n}<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">speak() has private access in com.dataflair.acessspecifiers.PrivateCLass<\/div>\n<p>As we can see, both of the classes are from the same package. But the private keyword limits access. Hence, the second class cannot create an object of the first class\u2019s method, namely speak.<\/p>\n<h4>Protected Access Specifier in Java<\/h4>\n<p>Protected has an interesting scope of access. It is accessible by the same package or subclasses in a different <strong><a href=\"https:\/\/www.ics.uci.edu\/~alspaugh\/cls\/shr\/java-package.html\" target=\"_blank\" rel=\"noopener\">package in java<\/a><\/strong>. Any other entities cannot access it.<\/p>\n<p>If there is a need to access protected members from a different package other than the one it is defined, then we use inheritance. However, if a constructor is declared as protected, then instances of the class cannot be created outside the package in which it is defined.<\/p>\n<p>A protected variable or a method can only be overridden in other classes by using the public or protected keywords. Thus, the outer class or interface should not be protected.<\/p>\n<p><strong>Java program to evaluate the functioning of protected access:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/\/First program in package p1\r\n\r\npackage com.dataflair.acessspecifiers.p1;\r\n\r\npublic class ProtectedClass1 {\r\n  protected void speak() {\r\n    System.out.println(\"Hello DataFlair! I am speaking in a protected way!\");\r\n  }\r\n}\r\n\r\n\/\/Now the second program \r\n\r\npackage com.dataflair.acessspecifiers.p2;\r\nimport com.dataflair.acessspecifiers.p1. * ;\r\n\r\npublic class ProtectedClass2 extends ProtectedClass1 {\r\n  public static void main(String[] args) {\r\n    ProtectedClass2 ob = new ProtectedClass2();\r\n    ob.speak();\r\n  }\r\n\r\n}<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Hello DataFlair! I am speaking in a protected way!<\/div>\n<h3>Summary<\/h3>\n<p>Summing up, these are the access specifiers that are important in Java programming and play an integral part in the access to the scope of different programs. However, without access specifiers, it would be impossible to grant specific access to specific parts of the program. This enables Java to be a superior language with high security. Therefore, any applications we develop using this programming language are trustworthy because of these constraints that programmers can put.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2163,&quot;href&quot;:&quot;https:\\\/\\\/www.ics.uci.edu\\\/~alspaugh\\\/cls\\\/shr\\\/java-package.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20240521224624\\\/https:\\\/\\\/ics.uci.edu\\\/~alspaugh\\\/cls\\\/shr\\\/java-package.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 00:22:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-03 19:17:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-08 18:05:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 04:31:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 05:18:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 16:23:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 17:53:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-15 08:50:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 13:39:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-25 03:59:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 10:42:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 06:47:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-31 19:35:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 01:09:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-12 14:08:04&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-12 14:08:04&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Access modifiers in Java serve the purpose of limiting the access of particular entities in a program. Consider the real-life example of a bank. The address of the bank is available to all. This&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":78523,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[20740,20738,20739,20741,20742,20737],"class_list":["post-6517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-default-access-modifiers","tag-java-access-modifiers-with-example","tag-private-access-modifiers","tag-protected-access-modifiers","tag-public-access-modifiers","tag-what-are-access-modifiers-in-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Access Modifiers in Java - Enhance Your Programming Skills - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn what are Access Modifiers in Java. Explore types of Access Modifiers - Public, private, protected, default with examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Access Modifiers in Java - Enhance Your Programming Skills - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn what are Access Modifiers in Java. Explore types of Access Modifiers - Public, private, protected, default with examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-25T09:41:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-18T07:03:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Access-Modifiers-in-Java-df.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Access Modifiers in Java - Enhance Your Programming Skills - DataFlair","description":"Learn what are Access Modifiers in Java. Explore types of Access Modifiers - Public, private, protected, default with examples.","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:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Access Modifiers in Java - Enhance Your Programming Skills - DataFlair","og_description":"Learn what are Access Modifiers in Java. Explore types of Access Modifiers - Public, private, protected, default with examples.","og_url":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-01-25T09:41:40+00:00","article_modified_time":"2026-05-18T07:03:15+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Access-Modifiers-in-Java-df.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Access Modifiers in Java &#8211; Enhance Your Programming Skills","datePublished":"2018-01-25T09:41:40+00:00","dateModified":"2026-05-18T07:03:15+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/"},"wordCount":955,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Access-Modifiers-in-Java-df.jpg","keywords":["Default\u00a0Access Modifiers","Java Access Modifiers with Example","Private\u00a0Access\u00a0Modifiers","Protected Access Modifiers","Public\u00a0Access Modifiers","What are Access Modifiers in Java"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/","url":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/","name":"Access Modifiers in Java - Enhance Your Programming Skills - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Access-Modifiers-in-Java-df.jpg","datePublished":"2018-01-25T09:41:40+00:00","dateModified":"2026-05-18T07:03:15+00:00","description":"Learn what are Access Modifiers in Java. Explore types of Access Modifiers - Public, private, protected, default with examples.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Access-Modifiers-in-Java-df.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Access-Modifiers-in-Java-df.jpg","width":1200,"height":628,"caption":"Access modifier in java"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/access-modifiers-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Java Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/java\/"},{"@type":"ListItem","position":3,"name":"Access Modifiers in Java &#8211; Enhance Your Programming Skills"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=6517"}],"version-history":[{"count":19,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6517\/revisions"}],"predecessor-version":[{"id":148334,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6517\/revisions\/148334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/78523"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=6517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=6517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=6517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}