

{"id":18872,"date":"2018-06-16T04:10:13","date_gmt":"2018-06-16T04:10:13","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=18872"},"modified":"2026-05-18T16:00:09","modified_gmt":"2026-05-18T10:30:09","slug":"final-keyword-in-java","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/","title":{"rendered":"Final Keyword in Java &#8211; Learn to Implement with Methods &amp; Classes"},"content":{"rendered":"<p>The final keyword in Java is one of the most useful keywords when it comes to implementing security in a program. It restricts the user from changing the values or contents declared as final. The final keyword can be used with variables, methods, and classes. In this article, we will take a look at the implementation of the final keyword in a Java program.<\/p>\n<p>&#8220;Final&#8221; as the name suggests, we cannot modify. When the keyword final is used before a variable, method, or class that means that it has some restrictions to prevent any changes.<\/p>\n<h3>What is the Final Keyword in Java?<\/h3>\n<p>As the word-final suggests, we can finalize a certain entity using the final keyword. In other words, anything declared final in the Java program cannot be modified. The final keyword restricts the user&#8217;s access to modify the data.<\/p>\n<ul>\n<li>A variable that is declared as a final variable is a constant throughout the program, and its value cannot be changed whatsoever.<\/li>\n<li>A method that is declared final cannot be overridden by any other subclasses.<\/li>\n<li>A class that is declared final cannot be inherited by any other class.<\/li>\n<\/ul>\n<h3>Final Variable in Java<\/h3>\n<p>Final variables are constants that cannot be altered throughout the program. After the initialization of the final variable, it is finalized, and alteration is not possible. If we try to alter it, we will get a compilation error.<\/p>\n<p><strong>The syntax for defining a final variable in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">final &lt;datatype&gt; &lt;variable name&gt;=&lt;value&gt;;\/\/final variable\r\nfinal &lt;datatype&gt;&lt;variable name&gt;;\/\/blank final variable\r\nstatic final &lt;datatype&gt;&lt;variable name&gt;=&lt;value&gt;;\/\/final static variable\r\n<\/pre>\n<p><strong>Code to understand the implementation of the final Variable:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class Intern\r\n{\r\n   final int SALARY=10000;\r\n   void change(){  \r\n      SALARY=10500;\r\n   }  \r\n   public static void main(String args[]){  \r\n      Intern i=new Intern();  \r\n      i.change();  \r\n   } \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">Compile Time Error<\/div>\n<p>The above code will give a compile-time error as we are trying to reassign the value of a final variable. It is impossible to do so, and hence the program won\u2019t compile.<\/p>\n<h3>Blank final variable in Java<\/h3>\n<p>We can declare a final variable and not initialize it; this type of final variable is known as a blank final variable. We have to initialize the variable in a constructor; otherwise, it will give a compilation error that the variable might not have been initialized.<\/p>\n<p><strong>Code to understand the implementation of the blank final Variable:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class Intern\r\n{\r\n   final int SALARY;\r\n   Intern()\r\n   {\r\n       SALARY=10000;\r\n   }\r\n   void show(){  \r\n      System.out.println(SALARY);\r\n   }  \r\n   public static void main(String args[]){  \r\n      Intern i=new Intern();  \r\n      i.show();  \r\n   } \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">10000<\/div>\n<h3>What is the use of a blank final variable?<\/h3>\n<p>We might have a final variable that has a different value for different cases. In this case, if we initialize the variable at first, it will have the same value for all cases. For example, in a company, every employee has an employee ID, which is a final variable that cannot be changed. So, if we declare and initialize it at the same time, all the employees will have the same employee ID. In such cases, the employee ID is declared during object creation.<\/p>\n<p><strong>Code to understand the use of blank final variables:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class Employee\r\n{\r\n   final int EMPLOYEE_ID; \r\n   Employee(int eid){\r\n      EMPLOYEE_ID=eid;\r\n   }\r\n   void show(){  \r\n      System.out.println(\"The Employee ID is:\"+EMPLOYEE_ID);\r\n   }  \r\n   public static void main(String args[]){  \r\n      Employee e1=new  Employee(112131221);  \r\n      e1.show();  \r\n   }\r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">The Employee ID is:112131221<\/div>\n<h3>Uninitialized static final variable in Java<\/h3>\n<p>We can declare a static final variable and not initialize it right away. But this variable can only be initialized in a static block inside the code.<\/p>\n<p><strong>Code to understand the implementation of an uninitialized static final variable:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class Employee\r\n{\r\n   static final int EMPLOYEE_ID; \r\n   static\r\n   {\r\n       EMPLOYEE_ID=112131221;\r\n   }\r\n   void show(){  \r\n      System.out.println(\"The Employee ID is:\"+EMPLOYEE_ID);\r\n   }  \r\n   public static void main(String args[]){  \r\n      Employee e1=new  Employee();  \r\n      e1.show();  \r\n   }\r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">The Employee ID is:112131221<\/div>\n<h3>Reference Final Variable in Java<\/h3>\n<p>We can use a final variable as a reference to an object; this is known as the reference final variable. For example, final StringBuffer S;<br \/>\nWe can change the internal state of the object that the final variable is pointing to. This doesn\u2019t mean that the property of the final variable is violated; we are not reassigning the value but changing the state of the object.<\/p>\n<p><strong>Code to Understand Reference Final Variable:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class FinalReference\r\n{\r\n    public static void main(String[] args) \r\n    {\r\n        final StringBuilder S = new StringBuilder(\"Data\");\r\n        System.out.println(S);\r\n        S.append(\"Flair\");  \r\n        System.out.println(S);\r\n    }    \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">Data<br \/>\nDataFlair<\/div>\n<h3>Java final method<\/h3>\n<p>A final method is a method that cannot be overridden. We can call a final method from a subclass, but the subclass cannot override the final method of the parent class. If we try to do so, it will give a compilation error.<\/p>\n<p><strong>Code to understand what will happen if we try to override a final method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class Company\r\n{\r\n     final void comment(){\r\n      System.out.println(\"Only Company admin can access\");\r\n   }  \r\n}  \r\npublic class Intern1 extends Company\r\n{\r\n    void comment()\/\/Trying to override\r\n   {\r\n      System.out.println(\"Intern trying to access admin!!!!\");\r\n   } \r\n   public static void main(String args[]){  \r\n      Intern1 i1= new Intern1();  \r\n      i1.comment();  \r\n   } \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">Compile Time Error<\/div>\n<p>The above code didn\u2019t run as the extended class tried to override the final method, which is illegal. Let us write the code now in such a way that it runs without error.<\/p>\n<p><strong>Code to implement the final method properly:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class Company\r\n{\r\n     final void comment(){\r\n      System.out.println(\"Only Company admin can access\");\r\n   }  \r\n}  \r\npublic class Intern1 extends Company\r\n{\r\n   public static void main(String args[]){  \r\n      Intern1 i1= new Intern1();  \r\n      i1.comment();  \r\n   } \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">Only Company admin can access<\/div>\n<p>This code did run, as the extended class only called the final method and did not try to override the final method.<\/p>\n<h3>Purpose of Java Final Method<\/h3>\n<p>The Java final method increases security. A final method prevents the subclass from overriding the definition of a method. If there is a method that contains a definition that should not be altered by the extended classes, it should be declared final to prevent overriding. This increases security while implementing the program.<\/p>\n<h3>Java final class<\/h3>\n<p>When there is a class that is a stand-alone and should not be inherited in any circumstances, it should be declared final. A final class cannot be inherited whatsoever.<\/p>\n<p><strong>Code to understand what happens when we try to inherit a final class:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\nfinal public class Company\r\n{\r\n      void comment(){\r\n      System.out.println(\"Only Company admin can access this class!\");\r\n   }  \r\n}  \r\npublic class Intern1 extends Company\r\n{\r\n   public static void main(String args[]){  \r\n      Intern1 i1= new Intern1();  \r\n      i1.comment();  \r\n   } \r\n}\r\n\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">Compile Time Error<\/div>\n<h3>Java final parameter<\/h3>\n<p>We can declare a parameter final, but then we will not be able to change the value of the parameter inside the method.<\/p>\n<p><strong>Code to understand what happens when we try to change the value of a final parameter:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class FinalParameter\r\n{\r\n   int square(final int n)\r\n   {  \r\n   n=n+2;\/\/can't be changed as n is final  \r\n   return n*n;  \r\n  }  \r\n  public static void main(String args[]){  \r\n    FinalParameter p=new FinalParameter();  \r\n    p.square(10);  \r\n }  \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">Compile Time Error<\/div>\n<p>The above code did not run because we tried to change the value of a final parameter.<\/p>\n<p><strong>Code to implement the final parameter properly:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.Final;\r\npublic class FinalParameter\r\n{\r\n   int square(final int n)\r\n   { \r\n   return n*n;  \r\n  }  \r\n  public static void main(String args[]){  \r\n    FinalParameter p=new FinalParameter();  \r\n    int sq=p.square(10);  \r\n    System.out.println(sq);\r\n }  \r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">100<\/div>\n<h3>Important points to remember:<\/h3>\n<p>1. We cannot declare a constructor as final.<\/p>\n<p>2. Local final variables cannot be kept uninitialized.<\/p>\n<p>3. The default datatype of all variables in an interface is final.<\/p>\n<p>4. The value of a final variable is unaltered throughout.<\/p>\n<p>5. Overriding a final method is impossible.<\/p>\n<p>6. Inheriting a final class is impossible.<\/p>\n<p>7. A final parameter has a value that cannot be altered inside the method.<\/p>\n<p>8. final, finally, and finalize should not be confused as the same. They are very different concepts. finally is used in exception handling, whereas finalize is used in garbage collection.<\/p>\n<h3>Common Pitfalls to Avoid with the Final Keyword in Java<\/h3>\n<p>While the final keyword offers advantages, it&#8217;s essential to steer clear of some common mistakes:<\/p>\n<p><strong>1. Misunderstanding final parameters:<\/strong> A final parameter cannot have its value altered within the method. However, you can modify the object the parameter refers to if it&#8217;s a reference type.<\/p>\n<p><strong>2. Confusing final with finally and finalize:<\/strong> These terms are distinct. Final restricts modification, finally ensures code execution even during exceptions, and finalize is invoked by the garbage collector before object removal.<\/p>\n<p><strong>3. Forgetting to initialize local final variables:<\/strong> Local final variables must be assigned a value during declaration or within the same code block to prevent compilation errors.<\/p>\n<h3>Conclusion<\/h3>\n<p>In this article, we saw the use of a final keyword, and when and where we can use it. A final keyword acts as an important element when the topic is about security and imposing restrictions. Hope you understand the use and common practices of the final keyword in Java. So, start practising the final keyword and create your own runnable code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The final keyword in Java is one of the most useful keywords when it comes to implementing security in a program. It restricts the user from changing the values or contents declared as final.&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":108899,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[4699,4701,4703,4704,7495,16076],"class_list":["post-18872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-final-class-in-java","tag-final-keyword-in-java","tag-final-method-in-java-with-exmaple","tag-final-variable-in-java","tag-java-final-methods","tag-when-to-use-a-final-variable-in-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Final Keyword in Java - Learn to Implement with Methods &amp; Classes - DataFlair<\/title>\n<meta name=\"description\" content=\"Use Final Keyword in java to restrict the user. Learn to implement this keyword on the variable, methods, classes with real-time 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\/final-keyword-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Final Keyword in Java - Learn to Implement with Methods &amp; Classes - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Use Final Keyword in java to restrict the user. Learn to implement this keyword on the variable, methods, classes with real-time examples\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/final-keyword-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-06-16T04:10:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-18T10:30:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/final-keyword-in-java.webp\" \/>\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\/webp\" \/>\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=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Final Keyword in Java - Learn to Implement with Methods &amp; Classes - DataFlair","description":"Use Final Keyword in java to restrict the user. Learn to implement this keyword on the variable, methods, classes with real-time 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\/final-keyword-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Final Keyword in Java - Learn to Implement with Methods &amp; Classes - DataFlair","og_description":"Use Final Keyword in java to restrict the user. Learn to implement this keyword on the variable, methods, classes with real-time examples","og_url":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-06-16T04:10:13+00:00","article_modified_time":"2026-05-18T10:30:09+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/final-keyword-in-java.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Final Keyword in Java &#8211; Learn to Implement with Methods &amp; Classes","datePublished":"2018-06-16T04:10:13+00:00","dateModified":"2026-05-18T10:30:09+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/"},"wordCount":1225,"commentCount":2,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/final-keyword-in-java.webp","keywords":["Final class in java","Final keyword in Java","Final method in Java with exmaple'","Final variable in java","Java Final Methods","When to use a Final Variable in Java"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/","url":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/","name":"Final Keyword in Java - Learn to Implement with Methods &amp; Classes - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/final-keyword-in-java.webp","datePublished":"2018-06-16T04:10:13+00:00","dateModified":"2026-05-18T10:30:09+00:00","description":"Use Final Keyword in java to restrict the user. Learn to implement this keyword on the variable, methods, classes with real-time examples","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/final-keyword-in-java\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/final-keyword-in-java.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/final-keyword-in-java.webp","width":1200,"height":628,"caption":"final keyword in java"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/final-keyword-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":"Final Keyword in Java &#8211; Learn to Implement with Methods &amp; Classes"}]},{"@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\/18872","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=18872"}],"version-history":[{"count":13,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18872\/revisions"}],"predecessor-version":[{"id":148344,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18872\/revisions\/148344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/108899"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=18872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=18872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=18872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}