{"id":79072,"date":"2020-06-15T09:00:03","date_gmt":"2020-06-15T03:30:03","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=79072"},"modified":"2020-06-15T09:00:03","modified_gmt":"2020-06-15T03:30:03","slug":"static-keyword-in-java","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/","title":{"rendered":"Static Keyword in Java &#8211; Static Methods, Variables and Classes"},"content":{"rendered":"<p>Someone who starts programming in Java is aware of the Static Methods. <strong>Static Methods<\/strong> has always been a confusing topic in Java for many of the programmers.<\/p>\n<p>In this article of static method, we attempt to clear all your myths and troubles related to the Static Method. Firstly one has to understand that<strong> Static<\/strong> is only a <strong>Keyword<\/strong> that is used to define the methods, blocks, classes as well as variables also.<\/p>\n<p><strong>Keywords<\/strong> are some reserved words that are predefined in the Java library to indicate some predefined actions. As keywords are the reserved words so we can not use it as the class name, variable name or method name.<\/p>\n<p>Now, we will discuss how we can use the static keywords with the class, method, block, and variables with examples.<\/p>\n<p>Let&#8217;s fall into the programming paradigm of <strong>Static Methods<\/strong> and try to learn every aspect of it.<\/p>\n<h3>Static Method v\/s Instance Method<\/h3>\n<h4>Instance Method<\/h4>\n<p>The method that usually every programmer uses in their program is an Instance method. The instance method clearly specifies from its name that we need to create an instance to access this method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">public void Instance_Method(String[] args) \/\/method without static keyword\n{\n  System.out.println(\"Example of Instance method\");\n}<\/pre>\n<p>To execute the above piece of code we have to create an instance of the class then call this method. The purpose of the Instance method is &#8220;when we need we call it&#8221;.<\/p>\n<p>That simply means that the Instance Method needs some mechanism to execute.<\/p>\n<h4>Static Method<\/h4>\n<p>When we talk about the Static method we have to assign a special keyword to indicate that the method is static. To declare any Static Method, we have to write a static Keyword before the method name.<\/p>\n<p><strong>Syntax of writing static method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">static &lt;method_name&gt;\n<\/pre>\n<p>As we discussed in the Instance method, we have to create an instance for it. In the static method, we don&#8217;t have to create an instance of the method to execute it.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">public static void Static_Method(String[] args) \/\/method with static keyword\n{\n  System.out.println(\"Example of Static method\");\n}<\/pre>\n<p>Java automatically executes the method with the static keyword. The programmer just needs to declare the static method and Java executes it.<\/p>\n<p>The purpose of the static method is when we need some piece of code that has to execute every time then we declare it as Static.<\/p>\n<p>Let&#8217;s take one more step towards the Static method and take a closer look at it.<\/p>\n<h3>Java Static Variable<\/h3>\n<p>In Java, the static variables are also called the class variables. If we declare any variable with the static keyword, then it is said to be a static variable.<\/p>\n<p>The variables declared with the static keyword refer to the common property for all the objects of the class.<\/p>\n<p>For example, the university name is the same for its students, employees, faculties, etc. In other words, we can say that only a single copy of the static variable is there which is shared among all the instances of the class.<\/p>\n<p>We can access the static variables directly from static as well as non-static methods.<\/p>\n<p><strong>Code to Understand Static Variable in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.statickeyword;\npublic class Static_Variable {\n  static int number1; \/\/Static variable type: int\n  static int number2; \/\/Static variable type: int\n  static String str1; \/\/Static variable type: String\n  static String str2; \/\/Static variable type: String\n\n  public static void main(String[] args) {\n    number1 = 101;\n    number2 = 102;\n    str1 = \u201cTechvidvan\u201d;\n    str2 = \u201cStatic variable article\u201d;\n    System.out.println(\"Static Number: \" + number1);\n    System.out.println(\"Static Number: \" + number2);\n    System.out.println(\"Static String: \" + str1);\n    System.out.println(\"Static String: \" + str2);\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Static Number: 101<br \/>\nStatic Number: 102<br \/>\nStatic String: Techvidvan<br \/>\nStatic String: Static variable article<\/div>\n<h3>Java Static Block<\/h3>\n<p>We know that a block is nothing but the lines of code enclosed within curly braces. If we declare any block as static, then such blocks are called static blocks in Java.<\/p>\n<p>We use the static block when we need to initialize the static variables. The static blocks load or execute at the time of loading a class. There can be multiple static blocks inside a Java program.<\/p>\n<p>And these multiple static blocks always execute in a sequential manner according to which they are written in the program.<\/p>\n<p><strong>Code to understand Single Static Block in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.statickeyword;\npublic class Single_Static_Block {\n  static int number; \/\/Static variable type: int\n  static String str; \/\/Static variable type: String\n\n  static {\n    \/\/ Static Block\n    number = 13;\n    str = \"Static Block in Java: Techvidvan\";\n  }\n\n  public static void main(String[] args) {\n    System.out.println(\"Static Number: \" + number);\n    System.out.println(\"Static String: \" + str);\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Static Number: 13<br \/>\nStatic String: Static Block in Java: Techvidvan<\/div>\n<p><strong>Code to understand Multiple Static Blocks in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.statickeyword;\npublic class Multiple_Static_Blocks {\n  static int number; \/\/Static variable type: int\n  static String str; \/\/Static variable type: String\n\n  \/\/ Static Block one\n  static {\n    System.out.println(\"First Static Block:\");\n    number = 51;\n    str = \"Static Block Example: Techvidvan\";\n  }\n\n  \/\/ Static Block two\n  static {\n    System.out.println(\"Second Static Block:\");\n    number = 10;\n    str = \"Block two: Techvidvan\";\n  }\n\n  public static void main(String[] args) {\n    System.out.println(\"Static Number: \" + number);\n    System.out.println(\"Static String: \" + str);\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">First Static Block:<br \/>\nSecond Static Block:<br \/>\nStatic Number: 10<br \/>\nStatic String: Block two: Techvidvan<\/div>\n<h3>Java Static Methods<\/h3>\n<p>Static methods are the methods declared with the static keyword. When we declare a method as static, we can call this method or access this method without creating an object or instance of the class.<\/p>\n<p>As we know that for calling non-static methods, we need to first create the object of the class and then call the method through the object, but unlike the non-static methods, we can call the static methods directly with the class name.<\/p>\n<p><strong>The syntax of calling static methods is:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ClassName.StaticMethodName();<\/pre>\n<p>Or, we can also directly call the static method like this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">StaticMethodName();<\/pre>\n<p><strong>First Code to Understand Static Methods in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.statickeyword;\npublic class Static_Method {\n  static void methodStatic() \/\/ declaring a static method\n  {\n    int num1 = 10;\n    int num2 = 20;\n    int sum = num1 + num2;\n    System.out.println(\"Static method: Techvidvan\");\n    System.out.println(\"Sum of \" + num1 + \" and \" + num2 + \" is \" + sum);\n  }\n\n  public static void main(String[] args) {\n    \/* Here we can see that\n     * we call our methods without any instance\n     * this is the purpose of static method \n    *\/\n    methodStatic();\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Static method: Techvidvan<br \/>\nSum of 10 and 20 is 30<\/div>\n<p><strong>Second Code to Understand Static Methods in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.statickeyword;\npublic class Static_Method_Two {\n  \/\/ declaring static variable type: int and String\n  static int number1 = 10;\n  static int number2 = 5;\n  static String str = \"Techvidvan\";\n\n  \/\/ declaring Static Method\n  static void multiply() {\n    int multi = number1 * number2;\n    System.out.println(\"The multiplication of number \" + number1 + \" and \" + number2 + \" is \" + multi);\n  }\n\n  \/\/ declaring a non-static method\n  void doMultiply() {\n    System.out.println(\"Techvidvan: Static method article\");\n\n    \/\/ a non-static method can also call a static method directly\n    multiply();\n  }\n\n  public static void main(String args[]) {\n    Static_Method_Two obj = new Static_Method_Two();\n\n    \/\/To call a non-static method we have to create an instance and we call the method\n\n    obj.doMultiply();\n\n    \/\/ we call static method directly by the class name\n    Static_Method_Two.multiply();\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Techvidvan: Static method article<br \/>\nThe multiplication of number 10 and 5 is 50<br \/>\nThe multiplication of number 10 and 5 is 50<\/div>\n<h3>Java Static Classes<\/h3>\n<p>We can also declare a class as static; the condition being that the class should be a nested class, i.e, it should be present within the class, then only we can declare it as static.<\/p>\n<p>The nested static class does not require an object of its Outer class. One more restriction with the nested static class is that it cannot access the non-static data members of the Outer class.<\/p>\n<p><strong>Code to understand the Static class in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.statickeyword;\npublic class Main {\n  private static String myStr = \"Techvidvan: Static Class Article\";\n  private static int number1 = 20;\n  private static int number2 = 5;\n\n  \/\/declaring Static class\n  static class NestedStatic {\n\n    \/\/declaring non-static method\n    public void display() {\n      int minus = number1 - number2;\n      System.out.println(\"The Subtraction of number \" + number1 + \" and \" + number2 + \" is \" + minus);\n      System.out.println(myStr);\n    }\n  }\n  public static void main(String args[]) {\n    Main.NestedStatic obj = new Main.NestedStatic();\n    obj.display();\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">The Subtraction of number 20 and 5 is 15<br \/>\nTechvidvan: Static Class Article<\/div>\n<h4>What is the main() method of Java static?<\/h4>\n<p>You have used the main() method in every Java program. The main() method of Java looks like:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">public static void main(String args[]) {\n  \/\/code inside the main() method\n}<\/pre>\n<p><strong><em>Have you ever wondered why this main() method is always static?<\/em><\/strong><\/p>\n<p>It is because there is no need to create an object of the class to call this method. We have already learned this fact in the section of the Static method of this article.<\/p>\n<p>We know that during the execution of the java program, the JVM always starts with the main() method of the class, and suppose this main() method was non-static then JVM had to create the object of the class and then call this method which would raise the problem of memory allocation.<\/p>\n<p>Therefore the main() method of Java is always declared as static.<\/p>\n<h3>Advantages of Static Keyword in Java<\/h3>\n<p><strong>1.<\/strong> Anything declared as static can be globally accessible.<\/p>\n<p><strong>2.<\/strong> We need only one object per class to access all the static variables that save the memory.<\/p>\n<p><strong>3.<\/strong> We can call static methods directly. So, there is no need to create objects.<\/p>\n<p><strong>4.<\/strong> Static keywords might possibly give the performance efficiency in the code as there is no need of checking for null.<\/p>\n<p><strong>5.<\/strong> Static keywords can do meta operations on objects like counting the number of objects or validating the object.<\/p>\n<h3>Conclusion<\/h3>\n<p>Static keyword is one of the reserved keywords among the 57 keywords of Java that plays a very important role in efficient memory management.<\/p>\n<p>We can use the static keyword with Java class, Java blocks, Java variables, and Java methods. We can only make a nested class as static in Java. If we want to initialize a static variable then we declare a block as static.<\/p>\n<p>If we want to directly call the method without creating an object of the class, then use the static methods. And use the static keyword with variables when you want that only a single copy of the object is shared among all the variables.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Someone who starts programming in Java is aware of the Static Methods. Static Methods has always been a confusing topic in Java for many of the programmers. In this article of static method, we&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":79092,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[2856,2857,2858,2859,2860,2861,2862,2863,1599,2864,2865],"class_list":["post-79072","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-instance-method-in-java","tag-instance-method-vs-static-method","tag-java-static","tag-java-static-class","tag-java-static-methods","tag-static-block-in-java","tag-static-keyword-in-java","tag-static-methods-in-java","tag-static-variable-in-java","tag-what-is-instance-method-in-java","tag-what-is-static-keyword-in-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Static Keyword in Java - Static Methods, Variables and Classes - TechVidvan<\/title>\n<meta name=\"description\" content=\"Static Keyword in java - What are static variables, static methods, static blocks &amp; static classes in java with examples, Static Method v\/s Instance Method.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Static Keyword in Java - Static Methods, Variables and Classes - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Static Keyword in java - What are static variables, static methods, static blocks &amp; static classes in java with examples, Static Method v\/s Instance Method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-15T03:30:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/Java-Static.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Static Keyword in Java - Static Methods, Variables and Classes - TechVidvan","description":"Static Keyword in java - What are static variables, static methods, static blocks & static classes in java with examples, Static Method v\/s Instance Method.","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:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Static Keyword in Java - Static Methods, Variables and Classes - TechVidvan","og_description":"Static Keyword in java - What are static variables, static methods, static blocks & static classes in java with examples, Static Method v\/s Instance Method.","og_url":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-06-15T03:30:03+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/Java-Static.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Static Keyword in Java &#8211; Static Methods, Variables and Classes","datePublished":"2020-06-15T03:30:03+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/"},"wordCount":1199,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/Java-Static.jpg","keywords":["Instance Method in Java","Instance Method vs. Static Method","java static","Java Static Class","java static methods","Static Block in Java","Static Keyword in Java","Static methods in Java","Static Variable in Java","What is Instance Method in Java","What is Static Keyword in Java"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/","url":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/","name":"Static Keyword in Java - Static Methods, Variables and Classes - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/Java-Static.jpg","datePublished":"2020-06-15T03:30:03+00:00","description":"Static Keyword in java - What are static variables, static methods, static blocks & static classes in java with examples, Static Method v\/s Instance Method.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/Java-Static.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/Java-Static.jpg","width":802,"height":420,"caption":"Static Keyword in java"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/static-keyword-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Static Keyword in Java &#8211; Static Methods, Variables and Classes"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/79072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=79072"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/79072\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/79092"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=79072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=79072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=79072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}