{"id":126,"date":"2026-06-03T04:49:10","date_gmt":"2026-06-03T04:49:10","guid":{"rendered":"https:\/\/gigz.pk\/javaapp\/?post_type=lesson&#038;p=126"},"modified":"2026-06-06T07:53:42","modified_gmt":"2026-06-06T07:53:42","slug":"try-catch-finally","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/javaapp\/?lesson=try-catch-finally","title":{"rendered":"try, catch, finally"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Try, catch, and finally are important components of Java Exception Handling. They help developers manage runtime errors gracefully and prevent applications from crashing unexpectedly. By using try, catch, and finally blocks, programs can detect errors, handle them properly, and continue execution when possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Exception handling is widely used in Java applications, Android development, web applications, enterprise software, and database systems. Understanding try, catch, and finally is essential for writing reliable and professional Java programs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Exceptions in Java?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An exception is an event that occurs during program execution and disrupts the normal flow of the program.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Examples of exceptions include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dividing a number by zero<\/li>\n\n\n\n<li>Accessing an invalid array index<\/li>\n\n\n\n<li>Reading a non-existent file<\/li>\n\n\n\n<li>Using a null object reference<\/li>\n\n\n\n<li>Invalid user input<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Without exception handling, these errors can cause a program to terminate unexpectedly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the try Block?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>try<\/code> block contains code that may generate an exception.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Java monitors the code inside the try block. If an exception occurs, the program immediately transfers control to a matching catch block.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n\n    \/\/ risky code\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Main {\n\n    public static void main(String&#91;] args) {\n\n        try {\n\n            int result = 10 \/ 0;\n\n            System.out.println(result);\n\n        }\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, division by zero causes an exception.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use a try Block?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The try block allows developers to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Detect runtime errors<\/li>\n\n\n\n<li>Prevent program crashes<\/li>\n\n\n\n<li>Handle exceptional situations<\/li>\n\n\n\n<li>Improve application reliability<\/li>\n\n\n\n<li>Create safer programs<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Any code that might generate an exception should be placed inside a try block.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the catch Block?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>catch<\/code> block handles exceptions generated inside the try block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When an exception occurs, Java searches for a suitable catch block to handle the error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n\n    \/\/ code\n\n}\ncatch(ExceptionType e) {\n\n    \/\/ handling code\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Main {\n\n    public static void main(String&#91;] args) {\n\n        try {\n\n            int result = 10 \/ 0;\n\n        }\n\n        catch (ArithmeticException e) {\n\n            System.out.println(\"Cannot divide by zero\");\n\n        }\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Cannot divide by zero\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The program handles the exception instead of crashing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How catch Works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The catch block receives the exception object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>catch (ArithmeticException e)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ArithmeticException is the exception type<\/li>\n\n\n\n<li>e is the exception object<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The object contains information about the error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying Error Messages<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>getMessage()<\/code> method displays the exception message.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n\n    int result = 10 \/ 0;\n\n}\n\ncatch (ArithmeticException e) {\n\n    System.out.println(e.getMessage());\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/ by zero\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This helps identify the cause of the error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Multiple catch Blocks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A try block can have multiple catch blocks to handle different exception types.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n\n    int&#91;] numbers = {1, 2, 3};\n\n    System.out.println(numbers&#91;5]);\n\n}\n\ncatch (ArithmeticException e) {\n\n    System.out.println(\"Arithmetic Error\");\n\n}\n\ncatch (ArrayIndexOutOfBoundsException e) {\n\n    System.out.println(\"Invalid Array Index\");\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Invalid Array Index\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Java executes the first matching catch block.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the finally Block?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>finally<\/code> block contains code that always executes, whether an exception occurs or not.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is commonly used for cleanup tasks such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Closing files<\/li>\n\n\n\n<li>Closing database connections<\/li>\n\n\n\n<li>Releasing resources<\/li>\n\n\n\n<li>Saving application state<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n\n    \/\/ code\n\n}\ncatch(Exception e) {\n\n    \/\/ handling code\n\n}\nfinally {\n\n    \/\/ cleanup code\n\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Example of finally Block<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Main {\n\n    public static void main(String&#91;] args) {\n\n        try {\n\n            int result = 10 \/ 0;\n\n        }\n\n        catch (ArithmeticException e) {\n\n            System.out.println(\"Error occurred\");\n\n        }\n\n        finally {\n\n            System.out.println(\"Finally block executed\");\n\n        }\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Error occurred\nFinally block executed\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The finally block runs even after an exception occurs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">finally Without Exception<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n\n    System.out.println(\"Program Running\");\n\n}\n\ncatch (Exception e) {\n\n    System.out.println(\"Error\");\n\n}\n\nfinally {\n\n    System.out.println(\"Cleanup Completed\");\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Program Running\nCleanup Completed\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The finally block executes even when no exception occurs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Complete Example<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Main {\n\n    public static void main(String&#91;] args) {\n\n        try {\n\n            int number = 20;\n            int result = number \/ 0;\n\n            System.out.println(result);\n\n        }\n\n        catch (ArithmeticException e) {\n\n            System.out.println(\"Division by zero is not allowed\");\n\n        }\n\n        finally {\n\n            System.out.println(\"Program Finished\");\n\n        }\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>Division by zero is not allowed\nProgram Finished\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This example demonstrates try, catch, and finally working together.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Exception Types<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">ArithmeticException<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Occurs during mathematical errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int result = 10 \/ 0;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">ArrayIndexOutOfBoundsException<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Occurs when accessing an invalid array index.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers&#91;10];\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">NullPointerException<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Occurs when using a null reference.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String name = null;\n\nname.length();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">NumberFormatException<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Occurs during invalid number conversion.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Integer.parseInt(\"Java\");\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">IOException<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Occurs during file and input\/output operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These are among the most common exceptions in Java.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Benefits of Exception Handling<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using try, catch, and finally provides many advantages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prevents application crashes<\/li>\n\n\n\n<li>Improves user experience<\/li>\n\n\n\n<li>Simplifies debugging<\/li>\n\n\n\n<li>Increases program reliability<\/li>\n\n\n\n<li>Handles unexpected situations<\/li>\n\n\n\n<li>Protects application resources<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Exception handling is a critical part of professional software development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Applications<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Try, catch, and finally are used in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Android applications<\/li>\n\n\n\n<li>Banking systems<\/li>\n\n\n\n<li>E-commerce platforms<\/li>\n\n\n\n<li>Database applications<\/li>\n\n\n\n<li>File management systems<\/li>\n\n\n\n<li>Network programming<\/li>\n\n\n\n<li>Enterprise software<\/li>\n\n\n\n<li>Web applications<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Most production-level applications rely heavily on exception handling.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Beginner Mistakes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Empty catch Block<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>catch(Exception e) {\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ignoring exceptions makes debugging difficult.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using Generic Exception Everywhere<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>catch(Exception e)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">when a specific exception should be handled.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Placing Code Outside try Block<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Risky code should always be inside the try block.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Forgetting finally for Resource Cleanup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Resources such as files and database connections should be properly closed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When using try, catch, and finally:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Catch specific exceptions whenever possible<\/li>\n\n\n\n<li>Provide meaningful error messages<\/li>\n\n\n\n<li>Avoid empty catch blocks<\/li>\n\n\n\n<li>Use finally for cleanup operations<\/li>\n\n\n\n<li>Keep try blocks focused and small<\/li>\n\n\n\n<li>Log exceptions when appropriate<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These practices improve software quality and maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importance of try, catch, and finally<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Exception handling is important because it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Maintains program stability<\/li>\n\n\n\n<li>Prevents unexpected termination<\/li>\n\n\n\n<li>Improves user experience<\/li>\n\n\n\n<li>Supports error recovery<\/li>\n\n\n\n<li>Protects application resources<\/li>\n\n\n\n<li>Enables professional software development<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is a fundamental skill for every Java developer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The try, catch, and finally blocks in Java provide a powerful mechanism for handling runtime errors and maintaining application stability. The try block contains code that may generate exceptions, the catch block handles errors gracefully, and the finally block ensures important cleanup tasks are always executed. Mastering these concepts is essential for building reliable Java applications, Android apps, web systems, and enterprise software solutions.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/javaapp\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Intermediate Java > Exception Handling > try, catch, finally<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><\/div>\n","protected":false},"menu_order":36,"template":"","class_list":["post-126","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>try, catch, finally - Learn Java used for Apps with GiGz.PK<\/title>\n<meta name=\"description\" content=\"Learn Java try, catch, and finally \u2014 how to handle exceptions, use multiple catch blocks, and write reliable error-free programs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"try, catch, finally - Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"og:description\" content=\"Learn Java try, catch, and finally \u2014 how to handle exceptions, use multiple catch blocks, and write reliable error-free programs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-06T07:53:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?lesson=try-catch-finally\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"try, catch, finally - Learn Java used for Apps with GiGz.PK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\"},\"datePublished\":\"2026-06-03T04:49:10+00:00\",\"dateModified\":\"2026-06-06T07:53:42+00:00\",\"description\":\"Learn Java try, catch, and finally \u2014 how to handle exceptions, use multiple catch blocks, and write reliable error-free programs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/javaapp\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Intermediate Java > Exception Handling > try, catch, finally\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/\",\"name\":\"Learn Java used for Apps with GiGz.PK\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"try, catch, finally - Learn Java used for Apps with GiGz.PK","description":"Learn Java try, catch, and finally \u2014 how to handle exceptions, use multiple catch blocks, and write reliable error-free programs.","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:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"try, catch, finally - Learn Java used for Apps with GiGz.PK","og_description":"Learn Java try, catch, and finally \u2014 how to handle exceptions, use multiple catch blocks, and write reliable error-free programs.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Learn Java used for Apps with GiGz.PK","article_modified_time":"2026-06-06T07:53:42+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/javaapp\/?lesson=try-catch-finally","url":"https:\/\/gigz.pk\/","name":"try, catch, finally - Learn Java used for Apps with GiGz.PK","isPartOf":{"@id":"https:\/\/gigz.pk\/javaapp\/#website"},"datePublished":"2026-06-03T04:49:10+00:00","dateModified":"2026-06-06T07:53:42+00:00","description":"Learn Java try, catch, and finally \u2014 how to handle exceptions, use multiple catch blocks, and write reliable error-free programs.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/javaapp"},{"@type":"ListItem","position":2,"name":"Intermediate Java > Exception Handling > try, catch, finally"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/javaapp\/#website","url":"https:\/\/gigz.pk\/javaapp\/","name":"Learn Java used for Apps with GiGz.PK","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/javaapp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}