{"id":25524418,"date":"2022-05-16T16:23:06","date_gmt":"2022-05-16T10:53:06","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25524418"},"modified":"2022-11-20T06:52:37","modified_gmt":"2022-11-20T01:22:37","slug":"constructors-in-java-an-overview-for-beginners","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/","title":{"rendered":"Constructors In Java- An Overview for Beginners"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e15f452cb70\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e15f452cb70\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#How_Constructors_are_Different_From_Methods_in_Java\" >How Constructors are Different From Methods in Java?\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#Need_of_Constructor\" >Need of Constructor<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#When_is_a_Constructor_called\" >When is a Constructor called?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#The_rules_for_writing_constructors\" >The rules for writing constructors\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#Types_of_Constructors_in_Java\" >Types of Constructors in Java<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#Default_Constructor\" >Default Constructor<\/a><\/li><\/ul><\/nav><\/div>\n<p>A constructor in Java is a\u00a0special method\u00a0that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes.<\/p>\n<p>In Java, a constructor is a block of codes similar to the method. It is called when an instance of the class is created. At the time of calling the constructor, memory for the object is allocated in the memory. It is a special type of method which is used to initialize the object. Every time an object is created using the new() keyword, at least one constructor is called.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><strong>Learn to code from industry experts! Enroll here<\/strong><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_Constructors_are_Different_From_Methods_in_Java\"><\/span><strong>How Constructors are Different From Methods in Java?\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Constructors must have the same name as the class within which it is defined while it is not necessary for the method in Java.<\/li>\n<li>Constructors do not return any type while method(s) have the return type or\u00a0voidif does not return any value.<\/li>\n<li>Constructors are called only once at the time of Object creation while method(s) can be called any number of times.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Need_of_Constructor\"><\/span><strong>Need of Constructor<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Think of a Box. If we talk about a box class then it will have some class variables (say length, breadth, and height). But when it comes to creating its object(i.e Box will now exist in the computer\u2019s memory), then can a box be there with no value defined for its dimensions. The answer is no.<br \/>\nSo constructors are used to assigning values to the class variables at the time of object creation, either explicitly done by the programmer or by Java itself (default constructor).<\/p>\n<h2><span class=\"ez-toc-section\" id=\"When_is_a_Constructor_called\"><\/span><strong>When is a Constructor called?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Each time an object is created using a\u00a0<strong>new()<\/strong>\u00a0keyword, at least one constructor (it could be the default constructor) is invoked to assign initial values to the\u00a0<strong>data members\u00a0<\/strong>of the same class.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"The_rules_for_writing_constructors\"><\/span><strong>The rules for writing constructors\u00a0<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Constructor(s) of a class must have the same name as the class name in which it resides.<\/li>\n<li>A constructor in Java can not be abstract, final, static, or Synchronized.<\/li>\n<li>Access modifiers can be used in constructor declaration to control its access i.e which other class can call the constructor.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Types_of_Constructors_in_Java\"><\/span><strong>Types of Constructors in Java<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now is the correct time to discuss types of the constructor, so primarily there are two types of constructors in java:<\/p>\n<ul>\n<li>No-argument constructor<\/li>\n<li>Parameterized Constructor<\/li>\n<li>\n<h3><strong> No-argument constructor<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>A constructor that has no parameter is known as the default constructor. If we don\u2019t define a constructor in a class, then the compiler creates a\u00a0<strong>default constructor(with no arguments)<\/strong> for the class. And if we write a constructor with arguments or no-arguments then the compiler does not create a default constructor.<\/p>\n<ul>\n<li>\n<h3><strong>Parameterized Constructor<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>A constructor that has parameters is known as parameterized constructor. If we want to initialize fields of the class with our own values, then use a parameterized constructor.<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\">Learn Coding in your Language! Enroll Here!<\/a><\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Default_Constructor\"><\/span><strong>Default Constructor<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The default constructor in Java initializes the data members of the class to their default values such as 0 for int, 0.0 for double etc. This constructor is implemented by default by the Java compiler if there is no explicit constructor implemented by the user for the class.<\/p>\n<p>If you observe the following example, we are not providing any constructor to it.<\/p>\n<p>public class Sample {<\/p>\n<p>int num;<\/p>\n<p>public static void main(String args[]){<\/p>\n<p>System.out.println(new Sample().num);<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>If you compile and run the above program the default constructor initializes the integer variable num with 0 and, you will get 0 as result.<\/p>\n<p><strong>Why is it important to choose Entri?<\/strong><\/p>\n<ul>\n<li>Excellent online platform for all the Competitive Exams.<\/li>\n<li>Provides updated materials created by the Entri Experts.<\/li>\n<li>Entri provides a best platform with full- length mock tests including previous year question papers.<\/li>\n<li>You can download the app for free and join the required classes.<\/li>\n<li>Entri wishes you all the best for your examinations and future endeavours.<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25522670 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png\" alt=\"Python and Machine Learning Rectangle\" width=\"970\" height=\"250\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png 970w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-300x77.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-768x198.png 768w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-750x193.png 750w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p><strong>\u201cYOU DON\u2019T HAVE TO BE GREAT TO START, BUT YOU HAVE TO START TO BE GREAT.\u201d<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A constructor in Java is a\u00a0special method\u00a0that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes. In Java, a constructor is a block of codes similar to the method. It is called when an instance of [&hellip;]<\/p>\n","protected":false},"author":55,"featured_media":25524420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1882],"tags":[],"class_list":["post-25524418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-java-programming"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Constructors In Java- An Overview for Beginners - Entri Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Constructors In Java- An Overview for Beginners - Entri Blog\" \/>\n<meta property=\"og:description\" content=\"A constructor in Java is a\u00a0special method\u00a0that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes. In Java, a constructor is a block of codes similar to the method. It is called when an instance of [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-16T10:53:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-20T01:22:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ayesha Surayya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ayesha Surayya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\"},\"author\":{\"name\":\"Ayesha Surayya\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/568cc9d6e77fd5d01033b61c88343097\"},\"headline\":\"Constructors In Java- An Overview for Beginners\",\"datePublished\":\"2022-05-16T10:53:06+00:00\",\"dateModified\":\"2022-11-20T01:22:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\"},\"wordCount\":685,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png\",\"articleSection\":[\"Articles\",\"Java Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\",\"url\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\",\"name\":\"Constructors In Java- An Overview for Beginners - Entri Blog\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png\",\"datePublished\":\"2022-05-16T10:53:06+00:00\",\"dateModified\":\"2022-11-20T01:22:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png\",\"width\":820,\"height\":615,\"caption\":\"Constructors In Java- An Overview for Beginners\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entri Skilling\",\"item\":\"https:\/\/entri.app\/blog\/category\/entri-skilling\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Java Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/entri-skilling\/java-programming\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Constructors In Java- An Overview for Beginners\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/568cc9d6e77fd5d01033b61c88343097\",\"name\":\"Ayesha Surayya\",\"url\":\"https:\/\/entri.app\/blog\/author\/ayesha-surayya\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Constructors In Java- An Overview for Beginners - Entri Blog","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:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/","og_locale":"en_US","og_type":"article","og_title":"Constructors In Java- An Overview for Beginners - Entri Blog","og_description":"A constructor in Java is a\u00a0special method\u00a0that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes. In Java, a constructor is a block of codes similar to the method. It is called when an instance of [&hellip;]","og_url":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2022-05-16T10:53:06+00:00","article_modified_time":"2022-11-20T01:22:37+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png","type":"image\/png"}],"author":"Ayesha Surayya","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Ayesha Surayya","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/"},"author":{"name":"Ayesha Surayya","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/568cc9d6e77fd5d01033b61c88343097"},"headline":"Constructors In Java- An Overview for Beginners","datePublished":"2022-05-16T10:53:06+00:00","dateModified":"2022-11-20T01:22:37+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/"},"wordCount":685,"commentCount":0,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png","articleSection":["Articles","Java Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/","url":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/","name":"Constructors In Java- An Overview for Beginners - Entri Blog","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png","datePublished":"2022-05-16T10:53:06+00:00","dateModified":"2022-11-20T01:22:37+00:00","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/Constructors-In-Java-An-Overview-for-Beginners.png","width":820,"height":615,"caption":"Constructors In Java- An Overview for Beginners"},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/constructors-in-java-an-overview-for-beginners\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Entri Skilling","item":"https:\/\/entri.app\/blog\/category\/entri-skilling\/"},{"@type":"ListItem","position":3,"name":"Java Programming","item":"https:\/\/entri.app\/blog\/category\/entri-skilling\/java-programming\/"},{"@type":"ListItem","position":4,"name":"Constructors In Java- An Overview for Beginners"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/568cc9d6e77fd5d01033b61c88343097","name":"Ayesha Surayya","url":"https:\/\/entri.app\/blog\/author\/ayesha-surayya\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25524418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25524418"}],"version-history":[{"count":5,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25524418\/revisions"}],"predecessor-version":[{"id":25547522,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25524418\/revisions\/25547522"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25524420"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25524418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25524418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25524418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}