{"id":88618,"date":"2025-01-31T18:00:12","date_gmt":"2025-01-31T12:30:12","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=88618"},"modified":"2025-01-31T18:40:56","modified_gmt":"2025-01-31T13:10:56","slug":"java-throws-keyword-with-examples","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/","title":{"rendered":"Java Throws Keyword with Examples"},"content":{"rendered":"<p>In Java, the throws keyword indicates that a method might throw one or more exceptions during its execution. It&#8217;s an important part of exception handling and is particularly relevant for checked exceptions, which are exceptions that the compiler forces you to handle or declare in your code.<\/p>\n<p>Using the throws keyword, you declare the potential exceptions that a method may propagate to its caller, allowing the caller to handle them appropriately.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">return_type method_name() throws exception_class_name {  \r\n}<\/pre>\n<h2>Difference between throw and throws in Java<\/h2>\n<table>\n<tbody>\n<tr>\n<td><b>SI.No<\/b><\/td>\n<td><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><b>\u00a0Throw<\/b><\/td>\n<td><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <b>Throws<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a01.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Used to trigger an exception in a method<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\u00a0Used to describe the exception categories that a method can throw.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a02.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">No more than one exception may be raised<\/span><\/td>\n<td><span style=\"font-weight: 400;\">There could be a few exceptions declared.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a03.<\/span><\/td>\n<td><strong>Syntax:<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">An object (new type) used inside the method comes after the throw.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/td>\n<td><strong>Syntax:<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A class is immediately after throws and when the method signature is used.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Which exception should be declared:<\/h3>\n<h4>Checked Exception only because:<\/h4>\n<ul>\n<li><strong>Unchecked exception:<\/strong> within our power to fix our code.<\/li>\n<li><strong>Error:<\/strong> not within our power. For instance, nothing can be done if a VirtualMachineError or StackOverflowError happens.<\/li>\n<\/ul>\n<h4>Advantage:<\/h4>\n<ul>\n<li>It is now possible to propagate (forward in the call stack) a checked exception.<\/li>\n<li>It informs the method&#8217;s caller with details on the exception.<\/li>\n<\/ul>\n<h3>Checked and Unchecked Exception:<\/h3>\n<h4>Checked Exception:<\/h4>\n<p>They are checked at compile-time. For example, IOException, InterruptedException, etc..,<\/p>\n<h4>Unchecked Exception:<\/h4>\n<p>They are not checked at compile-time but at run-time. For example ArithmeticException, NullPointerException, ArrayIndexOfBoundException, exception under Error class, etc..,<\/p>\n<p><strong>1. Java throws an Example Program:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.io.*;\r\nclass Main {\r\n  public static void findFile() throws IOException {\r\n    File newFile=new File(\"test.txt\");\r\n    FileInputStream stream=new FileInputStream(newFile);\r\n  }\r\n  public static void main(String[] args) {\r\n    try{\r\n      findFile();\r\n    } catch(IOException e){\r\n      System.out.println(e);\r\n    }\r\n  }\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><strong>java.io.FileNotFoundException:<\/strong> test.txt (No such file or directory)<\/p>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>When we run this program, if the file test.txt does not exist, FileInputStream throws a FileNotFoundException which extends the IOException class.<\/li>\n<li>If a method does not handle exceptions, the type of exceptions that may occur within it must be specified in the throws clause so that methods further up in the call stack can handle or specify them using the throws keyword themselves.<\/li>\n<li>The findFile() method specifies that an IOException can be thrown. The main() method calls this method and handles the exception if it is thrown.<\/li>\n<\/ul>\n<p><strong>Example 2: Java throw keyword<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">class Main {\r\n  public static void divideByZero() {\r\n    throw new ArithmeticException(\"Trying to divide by 0\");\r\n  }\r\n  public static void main(String[] args) {\r\n    divideByZero();\r\n  }\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><strong>Exception in thread &#8220;main&#8221; java.lang.ArithmeticException:<\/strong> Trying to divide by 0 at Main.divideByZero(Main.java:3)<\/p>\n<p>at Main.main(Main.java:7)<\/p>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>This code creates the Java class &#8220;Main.&#8221; These two approaches are used in this class:<\/li>\n<li>The method divideByZero() returns an ArithmeticException with the message &#8220;Trying to divide by 0.&#8221; In essence, it creates an error state that indicates a division by zero operation attempt.<\/li>\n<li>main(Args[] in a String): This is where the program begins. The divideByZero() function is invoked.<\/li>\n<li>In plainer language, the code shows how to produce and deal with an error scenario in Java deliberately. The main method calls the function that is defined to cause an arithmetic exception (division by zero). When the divideByZero() method is used, an exception is thrown that can, if necessary, be detected and handled elsewhere in the code.<\/li>\n<\/ul>\n<p><strong>Example 3: Throwing a Checked exception<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.io.*;\r\nclass Main {\r\n  public static void findFile() throws IOException {\r\n    throw new IOException(\"File not found\");\r\n  }\r\n\r\n\r\n  public static void main(String[] args) {\r\n    try {\r\n      findFile();\r\n      System.out.println(\"Rest of code in try block\");\r\n    } catch (IOException e) {\r\n      System.out.println(e.getMessage());\r\n    }\r\n  }\r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>File not found<\/p>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>An IOException is produced due to the message we passed to the findFile() function&#8217;s constructor.<\/li>\n<li>The procedures that call this findFile() function must either handle this exception or explicitly specify it using the throws keyword.<\/li>\n<li>The main() procedure handled this exception. The try block gives way to the catch block when an exception is raised during program execution. As a result, the catch block&#8217;s statements are executed in place of the try block&#8217;s remaining code.<\/li>\n<\/ul>\n<h3>There are two cases specified in Java throws keyword:<\/h3>\n<p><strong>Case 1:<\/strong> We have caught the exception, i.e. we have handled the exception using try\/catch block.<\/p>\n<p><strong>Case 2:<\/strong> We have declared the exception, i.e. specified throws keyword with the method.<\/p>\n<h4>Case 1: Handle Exception Using try-catch block<\/h4>\n<p>In case we handle the exception, the code will be executed fine whether the exception occurs during the program or not.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.io.*;  \r\nclass M{  \r\n void method()throws IOException{  \r\n  throw new IOException(\"device error\");  \r\n }  \r\n}  \r\npublic class Testthrows2{  \r\n   public static void main(String args[]){  \r\n    try{  \r\n     M m=new M();  \r\n     m.method();  \r\n    }catch(Exception e){System.out.println(\"exception handled\");}     \r\n  \r\n    System.out.println(\"normal flow...\");  \r\n  }  \r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>exception handled<\/p>\n<p>normal flow. . .<\/p>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>The M class is known to contain the method with the name method. This method is intended to raise an IOException.<\/li>\n<li>An IOException with the message &#8220;device error&#8221; is explicitly thrown by the procedure using a throw statement. This imitates an I\/O device problem.<\/li>\n<li>The Testthrows2 class has a defined main method that belongs to it.<\/li>\n<li>In the main method, the statement M m = new M() generates a new instance of the M class.<\/li>\n<li>Using m.method();, the M class&#8217; method is invoked.<\/li>\n<li>A try-catch block is necessary to handle any faults this function may throw because it is designed to throw an IOException.<\/li>\n<li>When an exception occurs, the catch block is activated, and it outputs<\/li>\n<\/ul>\n<h4>Case 2: Declare Exception<\/h4>\n<ul>\n<li>If the exception is declared, the function will run without a problem if it doesn&#8217;t happen.<\/li>\n<li>Throws does not handle exceptions; therefore, if we declare an exception and it arises, it will be thrown at runtime.<\/li>\n<\/ul>\n<p><strong>A. If an exception does not occur<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.io.*;  \r\nclass M{  \r\n void method()throws IOException{  \r\n  System.out.println(\"device operation performed\");  \r\n }  \r\n}  \r\nclass Testthrows3{  \r\n   public static void main(String args[])throws IOException{\/\/declare exception  \r\n     M m=new M();  \r\n     m.method();  \r\n  \r\n    System.out.println(\"normal flow...\");  \r\n  }  \r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>device operation performed<\/p>\n<p>normal flow&#8230;<\/p>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>There are two classes in the program: M and Test Throws 3.<\/li>\n<li>A method called method exists in the M class and is declared to throw an IOException. Inside the technique:<\/li>\n<li>To simulate a device operation, use<\/li>\n<li>the statement System.out.println(&#8220;device operation performed&#8221;);<\/li>\n<li>The main method contained in the Testthrows3 class is defined.<\/li>\n<li>Within the primary method:<\/li>\n<li>An IOException is explicitly stated to be thrown by the main procedure. This declaration implies that an IOException might be thrown by the main method.<\/li>\n<li>Using M m = new M();, a new instance of the M class is generated.<\/li>\n<li>Using m.method();, the M class&#8217; method is invoked. There is no try-catch block necessary here because the method method is declared to throw an IOException.<\/li>\n<li>Executing the statement System.out.println(&#8220;normal flow&#8230;&#8221;); prints<\/li>\n<\/ul>\n<p><strong>B. If Exception occurs:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import java.io.*;  \r\nclass M{  \r\n void method()throws IOException{  \r\n  throw new IOException(\"device error\");  \r\n }  \r\n}  \r\nclass Testthrows4{  \r\n   public static void main(String args[])throws IOException{\/\/declare exception  \r\n     M m=new M();  \r\n     m.method();  \r\n  \r\n    System.out.println(\"normal flow...\");  \r\n  }  \r\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Exception in thread &#8220;main&#8221; java.io.IOException: device error at M.method(Testthrows4.java:4)<\/p>\n<p>at Testthrows4.main(Testthrows4.java:10)<\/p>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>There are two classes in the program: M and Testthrows4.<\/li>\n<li>A method named method that is declared to throw an IOException is defined by the M class.<\/li>\n<li>A throw statement that tosses an IOException with the message &#8220;device error&#8221; is found inside the method function. This mimics the occurrence of a device problem.<\/li>\n<li>The main method, likewise defined to throw an IOException, is contained in the Testthrows4 class.<\/li>\n<li>Within the primary method:<\/li>\n<li>Using M m = new M();, a new instance of the M class is generated.<\/li>\n<li>Using m.method();, the M class&#8217; method is invoked.<\/li>\n<li>The main method must handle or declare this exception because the procedure is declared to throw an IOException.<\/li>\n<li>It prints &#8220;normal flow&#8230;&#8221; to the console when the command System.out.println(&#8220;normal flow&#8230;&#8221;); is run.<\/li>\n<\/ul>\n<h3>Summary<\/h3>\n<p>The throws keyword aids in creating a clear understanding between methods and the callers of those methods on any potential exceptions that can arise. This makes Java programs&#8217; handling of exceptions more streamlined, readable, and reliable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Java, the throws keyword indicates that a method might throw one or more exceptions during its execution. It&#8217;s an important part of exception handling and is particularly relevant for checked exceptions, which are&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":447270,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[296,5398,5399,299,263,250,5400,5401,5402],"class_list":["post-88618","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java","tag-java-throws-keyword","tag-java-throws-keyword-with-examples","tag-java-tutorial","tag-java-tutorial-for-beginners","tag-learn-java","tag-throws-keyword","tag-throws-keyword-in-java","tag-throws-keyword-in-java-with-examples"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java Throws Keyword with Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"The Java throws keyword is used to indicate that a method might throw one or more exceptions during its execution.\" \/>\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\/java-throws-keyword-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Throws Keyword with Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"The Java throws keyword is used to indicate that a method might throw one or more exceptions during its execution.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/\" \/>\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=\"2025-01-31T12:30:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-31T13:10:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/04\/java-throws-keyword.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=\"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=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Throws Keyword with Examples - TechVidvan","description":"The Java throws keyword is used to indicate that a method might throw one or more exceptions during its execution.","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\/java-throws-keyword-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Java Throws Keyword with Examples - TechVidvan","og_description":"The Java throws keyword is used to indicate that a method might throw one or more exceptions during its execution.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2025-01-31T12:30:12+00:00","article_modified_time":"2025-01-31T13:10:56+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/04\/java-throws-keyword.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf"},"headline":"Java Throws Keyword with Examples","datePublished":"2025-01-31T12:30:12+00:00","dateModified":"2025-01-31T13:10:56+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/"},"wordCount":1152,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/04\/java-throws-keyword.webp","keywords":["java","java throws keyword","java throws keyword with examples","Java Tutorial","java tutorial for beginners","Learn Java","throws keyword","throws keyword in java","throws keyword in java with examples"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/","url":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/","name":"Java Throws Keyword with Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/04\/java-throws-keyword.webp","datePublished":"2025-01-31T12:30:12+00:00","dateModified":"2025-01-31T13:10:56+00:00","description":"The Java throws keyword is used to indicate that a method might throw one or more exceptions during its execution.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/04\/java-throws-keyword.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/04\/java-throws-keyword.webp","width":1200,"height":628,"caption":"java throws keyword"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-throws-keyword-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Java Throws Keyword with Examples"}]},{"@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\/dde481bb412350cde1ed6e389bc0deaf","name":"TechVidvan Team"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/88618","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=88618"}],"version-history":[{"count":3,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/88618\/revisions"}],"predecessor-version":[{"id":447794,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/88618\/revisions\/447794"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/447270"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=88618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=88618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=88618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}