

{"id":6288,"date":"2018-01-23T13:07:59","date_gmt":"2018-01-23T07:37:59","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=6288"},"modified":"2026-05-07T12:08:23","modified_gmt":"2026-05-07T06:38:23","slug":"variables-in-java","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/variables-in-java\/","title":{"rendered":"Types of Variables in Java with Examples"},"content":{"rendered":"<p>Before studying what Variables in Java are, let&#8217;s go through some primary concepts in real life that mirror the concept of variables.<\/p>\n<p>Imagine it&#8217;s summer and you are very thirsty. You want to have water. But as soon as you are about to quench your thirst, you begin to observe that water is always in something. Right? It can be a bottle, it can be a glass, or it can be in a cup. These are containers or variables. They contain a value, in this case, water. However, the value of the container may change. This results in the name \u201cVariable\u2019 which means that the value inside it can change.<\/p>\n<p>Considering the example at hand, the tumbler can have anything, be it juice, water, or a milkshake. This is the basic concept of a variable.<\/p>\n<h3>Java Variables<\/h3>\n<p>When Java executes a program, the values are stored in containers called variables. It is the name of a memory location.<br \/>\nIt is also a basic unit of storage.<br \/>\nVariables must be declared before they are used, and the changes in variables make actual changes in the memory location.<\/p>\n<p>In Java ,variables are declared as &lt;datatype&gt;&lt;variable_name&gt;=&lt;Variable_value&gt;<\/p>\n<p>For Example- int i=76, String s=\u201dDataFlair\u201d;<\/p>\n<h3>Types of Variables in Java<\/h3>\n<p>The scope of a variable determines its visibility and lifetime within your program.<\/p>\n<p><strong>Java variables are of 3 types:<\/strong><\/p>\n<p>1. Java Local Variable<br \/>\n2. Instance Variable in Java<br \/>\n3. Java Static Variable<\/p>\n<h4>1. Local Variable in Java<\/h4>\n<p>A local variable is a variable that has a value within a particular method or a function. Outside the scope of the function, the program has no idea about the variable. Consider a real-life example, where you have an embarrassing nickname that is known to your parents. But no other person outside your house knows it, right?<\/p>\n<p>That is exactly how a local variable works. It is known locally. Hence the name. Local variables cannot be declared static.<\/p>\n<p><strong>Example of Java Local variable:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">class DataFlair {\r\n  int a = 9,\r\n  b = 10;\r\n  void LearnJava {\r\n    int local_j = 45; \/\/ A local variable\r\n    String s = \u201dDataFlair Training\u201d; \/\/A local variable\r\n  }\r\n}<\/pre>\n<p>A local variable cannot be accessed directly outside a function.<\/p>\n<h4>2. Java Instance Variable<\/h4>\n<p>Instance variables are those that are declared inside the body of a class but not within any methods. These differ with each instance of the class created, although they have the same identity.<\/p>\n<p><strong>Example of an instance variable in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">import java.io. * ;\r\nclass Person {\r\n  int height,\r\n  weight; \/\/ Instance Variables\r\n  Person(int h, int w) {\r\n    this.height = h;\r\n    this.weight = w;\r\n  }\r\n  void run() {\r\n    System.out.println(\u201cHuff Puff\u201d);\r\n  }\r\n  void print() {\r\n    System.out.println(\u201cNow my weight is\u201d + this.weight);\r\n  }\r\n  public static void main(String[] args) throws IOException {\r\n    Person A = new Person(170, 65);\r\n    A.run();\r\n    A.print();\r\n  }\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Huff Puff<br \/>\nNow my weight is 65.<\/div>\n<p>The variables height and weight are the instance variables, i,e, they are unique for every instance created.<\/p>\n<p>These cannot be initialized with a static keyword. However, one instance of the Person class cannot share the details of another instance of the same class.<\/p>\n<h4>3. Static Variables in Java<\/h4>\n<p>What if we want a variable that is shared across all the instances of a class? That&#8217;s where static variables come in. These are class- level variables which are the same for all the instances generated. As soon as a class loads, the static variables get their initialization.<\/p>\n<p>Static Variables are declared in the following way:<br \/>\n<strong>static &lt;variable_name&gt; =&lt;variable_value&gt;<\/strong><\/p>\n<p><strong>Example of a static variable in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import java.io. * ;\r\nclass DataFlair {\r\n  static int studentCount;\r\n  DataFlair() {\r\n    studentCount = 15;\r\n  }\r\n  void addStudent() {\r\n    studentCount++;\r\n  }\r\n\r\n  public static void main(String[] args) throws IOException {\r\n    DataFlair java = new DataFlair();\r\n    DataFlair python = new DataFlair();\r\n    java.addStudent();\r\n    python.addStudent();\r\n    System.out.println(\"Total Students \" + studentCount);\r\n  }\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Total Students 17<\/div>\n<p>Hence, we observe that the <a href=\"http:\/\/www.geom.uiuc.edu\/~daeron\/docs\/javaguide\/java\/anatomy\/static.html\">static variable <\/a>is shared across both the instances created in Java and Python for the class DataFlair. This also helps us in counting the total number of students who have joined DataFlair!<\/p>\n<h3>Declaring Java Variables<\/h3>\n<p>In Java, the variables have to be declared previously because, unlike Python, Java is a statically typed language. That means before its use in the program. If a variable is used and then declared, it outputs an error. The reason for this is that the compiler starts executing the lines from top to bottom. As soon as the compiler gets an initialization command, it reserves memory with the name mentioned in the program. If a particular variable is used in a line and it is not declared with a proper data type in any of the previous lines, then the compiler throws an error.<\/p>\n<p><strong>Example program to illustrate declaring variable concepts:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import java.io.IOException;\r\n\r\nclass DeclareVar {\r\n  public static void main(String[] args) throws IOException {\r\n    int a = 10,\r\n    b = 4;\r\n    System.out.println(c); \/\/ This accesses c before its declaration. \r\n    int c = 74;\r\n  }\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">DeclareVar.java:7: error: cannot find symbol<br \/>\nSystem.out.println(c);<br \/>\n^<br \/>\nsymbol: variable c<br \/>\nlocation: class DeclareVar<br \/>\n1 error<\/div>\n<h3>Variable Naming Conventions in Java<\/h3>\n<p>Selecting clear and descriptive variable names is crucial for enhancing code readability and maintainability. Strive to use names that accurately reflect the variable&#8217;s purpose. For instance, instead of x, a more descriptive name might be customerAge or totalCost. This practice makes your code easier to understand for both yourself and your fellow programmers, especially when revisiting code after extended periods.<\/p>\n<p>There are particular conventions to be followed when naming variables to enhance the readability of the program.<br \/>\nSome of them are:<\/p>\n<p><strong>a.<\/strong> Its convention to start the names of a variable with an alphabet rather than an underscore or a dollar sign<\/p>\n<p><strong>b.<\/strong> Variable names can have any alphabet or numbers after the first letter. However, spaces are not allowed.<\/p>\n<p><strong>c.<\/strong> The reserved words such as int, static, void, and so on cannot be used as variable names.<\/p>\n<p><strong>d.<\/strong> Constant values can be stored in variables that are named in \u201cALL_CAPS\u201d.<\/p>\n<p><strong>e.<\/strong> Variables which need two distinct words can be written together using camelCase.<\/p>\n<p><strong>Example<\/strong>&#8211; int amountOfWater=1000; \/\/This preserves the meaning of the variable.<\/p>\n<h3>Summary<\/h3>\n<p>From storing the numbers to storing the strings, we use variables at almost every point of programming. Now we have understood why we need variables and what are the things to keep in mind while declaring variables.<\/p>\n<p>However, we also got to know about different types of variables and the accessibility of variables across programs. In this article, we learned about the various kinds of variables in Java and their uses.<\/p>\n<p>In programming, the cautious and efficient use of variables leads to faster outputs. In programming, variables play an efficient role in memory optimization. Variables are key in programming, and without variables, storing data would be impossible.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2164,&quot;href&quot;:&quot;http:\\\/\\\/www.geom.uiuc.edu\\\/~daeron\\\/docs\\\/javaguide\\\/java\\\/anatomy\\\/static.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20240419173057\\\/http:\\\/\\\/www.geom.uiuc.edu\\\/~daeron\\\/docs\\\/javaguide\\\/java\\\/anatomy\\\/static.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 00:22:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-15 17:12:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-25 05:12:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-01 21:45:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-17 06:21:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-23 12:08:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-28 07:05:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-02 11:22:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-06 12:08:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-14 08:48:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 17:37:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 06:01:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 13:52:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 06:54:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-12 09:28:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-19 18:47:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 04:52:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 11:26:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-06 15:26:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 05:51:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-17 13:53:07&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-20 15:18:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-25 16:52:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-28 22:49:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-02 13:46:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 09:34:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-11 17:09:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-14 23:45:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-21 09:09:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-28 03:30:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-31 06:21:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-09 09:38:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-12 21:38:50&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-12 21:38:50&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before studying what Variables in Java are, let&#8217;s go through some primary concepts in real life that mirror the concept of variables. Imagine it&#8217;s summer and you are very thirsty. You want to have&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":78482,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[3641,6831,7739,16454,8364,12661,13791,15124,15489],"class_list":["post-6288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-declaring-java-variable","tag-instance-variables-in-java","tag-java-variable-declaration","tag-java-variable-example","tag-local-variables-in-java","tag-scope-of-variables-in-java","tag-static-variables-in-java","tag-types-of-variables-in-java","tag-what-are-java-variables"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Types of Variables in Java with Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"Variables in Java is used to store the value of element. There are 3 types of variable: Local, global, static. Learn each type with example and declaration\" \/>\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\/variables-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Types of Variables in Java with Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Variables in Java is used to store the value of element. There are 3 types of variable: Local, global, static. Learn each type with example and declaration\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/variables-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-23T07:37:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-07T06:38:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Java-Variables-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":"Types of Variables in Java with Examples - DataFlair","description":"Variables in Java is used to store the value of element. There are 3 types of variable: Local, global, static. Learn each type with example and declaration","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\/variables-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Types of Variables in Java with Examples - DataFlair","og_description":"Variables in Java is used to store the value of element. There are 3 types of variable: Local, global, static. Learn each type with example and declaration","og_url":"https:\/\/data-flair.training\/blogs\/variables-in-java\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-01-23T07:37:59+00:00","article_modified_time":"2026-05-07T06:38:23+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Java-Variables-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\/variables-in-java\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Types of Variables in Java with Examples","datePublished":"2018-01-23T07:37:59+00:00","dateModified":"2026-05-07T06:38:23+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/"},"wordCount":981,"commentCount":7,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Java-Variables-DF.jpg","keywords":["Declaring Java Variable","Instance variables in java","Java Variable Declaration","Java Variable Example","local variables in java","scope of variables in java","Static variables in java","types of Variables in java","what are Java variables"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/variables-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/","url":"https:\/\/data-flair.training\/blogs\/variables-in-java\/","name":"Types of Variables in Java with Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Java-Variables-DF.jpg","datePublished":"2018-01-23T07:37:59+00:00","dateModified":"2026-05-07T06:38:23+00:00","description":"Variables in Java is used to store the value of element. There are 3 types of variable: Local, global, static. Learn each type with example and declaration","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/variables-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/variables-in-java\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Java-Variables-DF.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Java-Variables-DF.jpg","width":1200,"height":628,"caption":"Variables in java"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/variables-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":"Types of Variables in Java with Examples"}]},{"@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\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6288","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=6288"}],"version-history":[{"count":20,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6288\/revisions"}],"predecessor-version":[{"id":148244,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/6288\/revisions\/148244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/78482"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=6288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=6288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=6288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}