{"id":2313,"date":"2020-04-02T17:05:18","date_gmt":"2020-04-02T17:05:18","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=2313"},"modified":"2020-04-07T18:22:43","modified_gmt":"2020-04-07T12:52:43","slug":"introduction-exception-handling","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/introduction-exception-handling\/","title":{"rendered":"Introduction to Exception Handling"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">An exception is an error that disrupts the normal flow of execution of the code.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Mainly there are two types of errors:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Compile-time errors<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Runtime errors<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Compile-time errors are further classified into two types:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Syntax Errors<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Semantic Errors<\/span><\/li>\n<\/ul>\n<h2><b>Example of Syntax Errors:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Suppose you have declared a variable name as in a; instead of declaring as int a; then, the compiler will throw a syntax error.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us take another example, suppose you have declared a variable int a; and after some lines, you again declare a variable as int a;. All these errors will be thrown when you compile the code.<\/span><\/p>\n<h2><b>Example of Runtime Errors:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">A Runtime error is called an Exception error. It is an event that interrupts the normal flow of program execution.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Some <a href=\"https:\/\/www.h2kinfosys.com\/blog\/java-exception-handling\/\">examples of exceptions<\/a> are the arithmetic exception, Nullpointer exception, Divide by zero exception, etc.<\/span><\/p>\n<h2><b>The need for Handling Exception?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Suppose you have created a program to access the server, and things worked fine while developing the code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">But during the actual production run, the server is down, and when your program tried to access it, it raised an exception.<\/span><\/p>\n<h2><b>The process to Handle Exception:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">For handling exceptions, you need a Robust Programming, which takes care of such exceptional situations, and such code is called Exception Handler.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this example, a proper exception handling would be that when the server is down, it should connect to the backup server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To implement this, enter your code using traditional if and else to connect to the server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Hence you will check if the server is down. If yes, then write the code to connect to the backup server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Such implementation of code using &#8220;if&#8221; and &#8220;else&#8221; loop is not effective when there are multiple <a href=\"https:\/\/www.h2kinfosys.com\/courses\/java-online-training-course-details\">java exceptions<\/a> in the code.<\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">class connectServer{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">if(Server is Up){<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\u00a0\/\/ code for connecting to server<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">else{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\u00a0\/\/ code for connecting to BACKUP server<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<h2><b>Try Catch Block<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Java has its own inbuilt exceptional handling where the normal code goes into a TRY block and the exception handling code goes into the CATCH block.<\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">class connectServer<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">try<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; text-indent: 36pt; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; text-indent: 36pt; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\/\/ normal code<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; text-indent: 36pt; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">catch<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"color: #800080;\"><strong><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\"><span class=\"Apple-tab-span\" style=\"white-space: pre;\">\u00a0 \u00a0\u00a0<\/span><\/span><span style=\"font-size: 12pt; font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\/\/ Exception Handling Code<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; text-indent: 36pt; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">In our example, TRY block contains the code to connect to the server and CATCH block contains the code to connect to the backup server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If the server is up, the code in the CATCH block gets ignored, and if the server is down, an exception occurs, and the code in the catch block will be executed.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this way, an exception is handled in Java.<\/span><\/p>\n<h2><b>Java Exception class Hierarchy:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">After the execution of one catch statement, the others are ignored, and execution again starts continuing after the try\/catch block. The exception hierarchy is followed by the nested catch blocks.<\/span><\/p>\n<p dir=\"ltr\"><span style=\"font-weight: 400;\">All the exception <a href=\"https:\/\/www.h2kinfosys.com\/blog\/nested-classes-in-java\/\">classes in Java <\/a>extend the class \u2018<\/span><b>Throwable<\/b><span style=\"font-weight: 400;\">.\u2019 Throwable consists of two subclasses, Error and Exception.<\/span><\/p>\n<p dir=\"ltr\"><a href=\"https:\/\/www.h2kinfosys.com\/courses\/java-online-training-course-details\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-2314 aligncenter\" src=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot_68.png\" alt=\"\" width=\"531\" height=\"426\" title=\"\" srcset=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot_68.png 649w, https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot_68-300x241.png 300w\" sizes=\"(max-width: 531px) 100vw, 531px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The Error class contains those exceptions that are not expected to occur under normal circumstances. E.g., example Memory error, Hardware error, JVM error, etc.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The Exception class contains those exceptions that can be handled by our program, and our program can recover from this exception with the help of try and catch block.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A Runtime exception is a subclass of the exception class and, it contains those exceptions that occur at the run time and which are not being tracked at the compile time. E.g., divide by zero exception, or null pointer exception, etc.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">During input and output operations IO exception is generated.<\/span><\/li>\n<\/ul>\n<p dir=\"ltr\"><span style=\"font-weight: 400;\">During multiple threading,<\/span> <span style=\"font-weight: 400;\">Interrupted exceptions are generated.<\/span><\/p>\n<h2><b>Java Finally Block:<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">The final block gets executed either an exception is raised in the try block or not and is optional to use with a try block.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">try<\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\/\/code<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}\u00a0<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">catch (ExceptionType exceptionName)\u00a0<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\/\/code<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}\u00a0<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">Finally<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">{<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">\u00a0\/\/code<\/span><\/strong><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height: 1; margin-top: 0pt; margin-bottom: 10pt; padding-left: 60px;\"><span style=\"font-size: 12pt; color: #800080;\"><strong><span style=\"font-family: Calibri, sans-serif; background-color: transparent; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;\">}<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">If an exception arises in the try block, then finally block gets executed after the execution of the catch block.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An exception is an error that disrupts the normal flow of execution of the code.\u00a0 Mainly there are two types of errors: Compile-time errors Runtime errors Compile-time errors are further classified into two types: Syntax Errors Semantic Errors Example of Syntax Errors: Suppose you have declared a variable name as in a; instead of declaring [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[460,461,462,58],"class_list":["post-2313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java-tutorials","tag-exception-handling","tag-handling-exception","tag-hierarchy","tag-java"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/2313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=2313"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/2313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/2408"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=2313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=2313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=2313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}