{"id":106,"date":"2026-06-02T12:00:05","date_gmt":"2026-06-02T12:00:05","guid":{"rendered":"https:\/\/gigz.pk\/javaapp\/?post_type=lesson&#038;p=106"},"modified":"2026-06-06T06:27:00","modified_gmt":"2026-06-06T06:27:00","slug":"constructors","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/javaapp\/?lesson=constructors","title":{"rendered":"Constructors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Constructors are a fundamental concept in Java Object-Oriented Programming (OOP). They are special methods used to initialize objects when they are created. Constructors help ensure that objects start with the required values and are ready for use immediately after creation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding constructors is essential for building professional Java applications, Android apps, enterprise software, and other object-oriented systems. They play a major role in object initialization and improve code organization and maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Constructors in Java?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A constructor is a special method that is automatically called when an object is created. Its primary purpose is to initialize object variables and perform setup tasks required for the object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike regular methods, constructors do not have a return type, not even void.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    Student() {\n\n        System.out.println(\"Object Created\");\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, the constructor displays a message whenever an object is created.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use Constructors?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors help initialize objects efficiently and ensure that all required data is available when the object is created.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Benefits of constructors include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automatic object initialization<\/li>\n\n\n\n<li>Improved code readability<\/li>\n\n\n\n<li>Reduced repetitive code<\/li>\n\n\n\n<li>Better object management<\/li>\n\n\n\n<li>Enhanced program reliability<\/li>\n\n\n\n<li>Support for Object-Oriented Programming principles<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors are widely used in real-world software applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rules of Constructors<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java constructors follow specific rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Constructor name must be the same as the class name<\/li>\n\n\n\n<li>Constructors do not have a return type<\/li>\n\n\n\n<li>Constructors are called automatically when an object is created<\/li>\n\n\n\n<li>A class can have multiple constructors<\/li>\n\n\n\n<li>Constructors can accept parameters<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Car {\n\n    Car() {\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The constructor name matches the class name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating an Object with a Constructor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    Student() {\n\n        System.out.println(\"Student Object Created\");\n\n    }\n\n}\n\npublic class Main {\n\n    public static void main(String&#91;] args) {\n\n        Student student1 = new Student();\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student Object Created\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The constructor runs automatically when the object is created.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Types of Constructors in Java<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java mainly provides two types of constructors:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Default Constructor<\/li>\n\n\n\n<li>Parameterized Constructor<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Both serve different purposes in object initialization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Default Constructor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A default constructor does not accept any parameters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    Student() {\n\n        System.out.println(\"Default Constructor Called\");\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Default Constructor Called\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Default constructors are useful when no initial values are required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">User-Defined Default Constructor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Developers can create their own default constructors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Employee {\n\n    Employee() {\n\n        System.out.println(\"Employee Created\");\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This constructor performs custom initialization tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Parameterized Constructor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A parameterized constructor accepts arguments during object creation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    String name;\n\n    Student(String studentName) {\n\n        name = studentName;\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student(\"Ali\");\n\nSystem.out.println(student1.name);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ali\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The constructor initializes the object with a specific value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Constructor with Multiple Parameters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors can accept multiple values.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    String name;\n    int age;\n\n    Student(String n, int a) {\n\n        name = n;\n        age = a;\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student(\"Ahmed\", 20);\n\nSystem.out.println(student1.name);\nSystem.out.println(student1.age);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ahmed\n20\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This approach simplifies object initialization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Constructor Overloading<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java allows multiple constructors within the same class.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    Student() {\n\n        System.out.println(\"Default Constructor\");\n\n    }\n\n    Student(String name) {\n\n        System.out.println(\"Student Name: \" + name);\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student s1 = new Student();\n\nStudent s2 = new Student(\"Ali\");\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Default Constructor\nStudent Name: Ali\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This feature is known as constructor overloading.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Difference Between Constructors and Methods<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Constructor<\/th><th>Method<\/th><\/tr><\/thead><tbody><tr><td>Initializes objects<\/td><td>Performs actions<\/td><\/tr><tr><td>Same name as class<\/td><td>Can have any valid name<\/td><\/tr><tr><td>No return type<\/td><td>Can return values<\/td><\/tr><tr><td>Called automatically<\/td><td>Called explicitly<\/td><\/tr><tr><td>Runs during object creation<\/td><td>Runs when invoked<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding this distinction is important in Java programming.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Constructors to Initialize Variables<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Car {\n\n    String brand;\n    int year;\n\n    Car(String b, int y) {\n\n        brand = b;\n        year = y;\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Car car1 = new Car(\"Toyota\", 2024);\n\nSystem.out.println(car1.brand);\nSystem.out.println(car1.year);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Toyota\n2024\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors make object initialization simple and efficient.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Bank account system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class BankAccount {\n\n    String accountHolder;\n    double balance;\n\n    BankAccount(String name, double amount) {\n\n        accountHolder = name;\n        balance = amount;\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Object creation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BankAccount account = new BankAccount(\"Ali\", 5000);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The constructor automatically initializes account details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Constructor Chaining<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A constructor can call another constructor within the same class using the this keyword.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    Student() {\n\n        this(\"Ali\");\n\n    }\n\n    Student(String name) {\n\n        System.out.println(name);\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ali\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Constructor chaining reduces code duplication and improves maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Applications of Constructors<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors are commonly 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>Student management systems<\/li>\n\n\n\n<li>Inventory software<\/li>\n\n\n\n<li>Hospital management systems<\/li>\n\n\n\n<li>Enterprise applications<\/li>\n\n\n\n<li>Game development<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">They ensure that objects are properly initialized before use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Beginner Mistakes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Adding a Return Type<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    void Student() {\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is treated as a regular method, not a constructor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Constructor Name Different from Class Name<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Student {\n\n    StudentInfo() {\n\n    }\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The constructor name must exactly match the class name.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Forgetting Parameters During Object Creation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Student student1 = new Student();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If only a parameterized constructor exists, required arguments must be provided.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Confusing Constructors with Methods<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors initialize objects, while methods perform actions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding this difference is essential.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When using constructors:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use meaningful parameter names<\/li>\n\n\n\n<li>Initialize all important variables<\/li>\n\n\n\n<li>Avoid excessive constructor complexity<\/li>\n\n\n\n<li>Use constructor overloading when appropriate<\/li>\n\n\n\n<li>Validate input values if necessary<\/li>\n\n\n\n<li>Keep constructors focused on initialization<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These practices improve code quality and maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importance of Constructors<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors are essential because they:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Initialize objects automatically<\/li>\n\n\n\n<li>Improve program reliability<\/li>\n\n\n\n<li>Reduce repetitive code<\/li>\n\n\n\n<li>Support object-oriented design<\/li>\n\n\n\n<li>Enhance maintainability<\/li>\n\n\n\n<li>Simplify application development<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">They are a core component of professional Java programming.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Constructors are special methods used to initialize objects in Java. They ensure that objects are properly configured when created and help developers build reliable, organized, and efficient applications. By mastering constructors, developers gain a strong understanding of object initialization and take an important step toward advanced Object-Oriented Programming concepts in Java.<\/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 > Object-Oriented Programming > Constructors<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><\/div>\n","protected":false},"menu_order":26,"template":"","class_list":["post-106","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>Constructors - Learn Java used for Apps with GiGz.PK<\/title>\n<meta name=\"description\" content=\"Learn Java constructors \u2014 default, parameterized, and overloaded constructors with examples and object initialization explained simply.\" \/>\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=\"Constructors - Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"og:description\" content=\"Learn Java constructors \u2014 default, parameterized, and overloaded constructors with examples and object initialization explained simply.\" \/>\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-06T06:27:00+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=constructors\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Constructors - Learn Java used for Apps with GiGz.PK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\"},\"datePublished\":\"2026-06-02T12:00:05+00:00\",\"dateModified\":\"2026-06-06T06:27:00+00:00\",\"description\":\"Learn Java constructors \u2014 default, parameterized, and overloaded constructors with examples and object initialization explained simply.\",\"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 > Object-Oriented Programming > Constructors\"}]},{\"@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":"Constructors - Learn Java used for Apps with GiGz.PK","description":"Learn Java constructors \u2014 default, parameterized, and overloaded constructors with examples and object initialization explained simply.","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":"Constructors - Learn Java used for Apps with GiGz.PK","og_description":"Learn Java constructors \u2014 default, parameterized, and overloaded constructors with examples and object initialization explained simply.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Learn Java used for Apps with GiGz.PK","article_modified_time":"2026-06-06T06:27:00+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=constructors","url":"https:\/\/gigz.pk\/","name":"Constructors - Learn Java used for Apps with GiGz.PK","isPartOf":{"@id":"https:\/\/gigz.pk\/javaapp\/#website"},"datePublished":"2026-06-02T12:00:05+00:00","dateModified":"2026-06-06T06:27:00+00:00","description":"Learn Java constructors \u2014 default, parameterized, and overloaded constructors with examples and object initialization explained simply.","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 > Object-Oriented Programming > Constructors"}]},{"@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\/106","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=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}