{"id":19169,"date":"2020-07-07T05:26:45","date_gmt":"2020-07-07T12:26:45","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=19169"},"modified":"2023-12-01T03:53:20","modified_gmt":"2023-12-01T11:53:20","slug":"java-class-object","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-class-object\/","title":{"rendered":"How to Use Java Classes and Objects"},"content":{"rendered":"\n<p>What do we mean when we talk about a class in Java? It\u2019s certainly not a class like you\u2019d have in school, with students and teachers. A class is a blueprint for an object in your code.<br><\/p>\n\n\n\n<p>Java is an object-oriented programming language. This means that it includes a number of features that help you write reusable code. Object-oriented programming is useful for programs of all sizes because it helps reduce repetition, which in turn makes your code more readable.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to talk about two important concepts in Java: the class and the object. We\u2019ll discuss how they work, and how you can implement them, with reference to examples.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Java Class?<\/h2>\n\n\n\n<p>A class is like a blueprint for an object. Whereas a blueprint for a bedroom may say what types of doors and windows are being installed, a class tells your program what methods and values an object should be able to access and store.&nbsp;<br><\/p>\n\n\n\n<p>Classes are useful because they allow you to declare a structure for a particular type of data once which you can reference multiple times by declaring objects.<br><\/p>\n\n\n\n<p>Let\u2019s define a class called Employee which has one variable and two methods:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public class Employee {\n\tboolean isOnVacation;\n\tpublic void startVacation() {\n\t\tisOnVacation = true;\n\t\tSystem.out.println(\"You are now on vacation.\");\n\t}\n\tpublic void endVacation() {\n\t\tisOnVacation = false;\n\t\tSystem.out.println(\"You are not on vacation anymore.\");\n\t}\n}<\/pre><\/div>\n\n\n\n<p>In our code, we\u2019ve defined two methods: one to start an employee\u2019s vacation, and the other to end an employee\u2019s vacation. We have declared a boolean instance variable called isOnVacation to track this information.<br><\/p>\n\n\n\n<p>We haven\u2019t yet created any objects of our employee class. We\u2019ve only outlined the blueprint which will later define how those objects take shape.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Java Object?<\/h2>\n\n\n\n<p>An object is an instance of a particular class. Let\u2019s create an object using our Employee blueprint from earlier. We\u2019ll create an object called john:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Employee john = new Employee();<\/pre><\/div>\n\n\n\n<p>This code creates an instance of the class Employee. Notice that we\u2019ve added two parenthesis after the name of our class, which tells our code to reference the Employee class. The <code>new<\/code> keyword tells our code to create a new object of that class.<br><\/p>\n\n\n\n<p>Now, let\u2019s use our object methods:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Employee john = new Employee();\njohn.startVacation();\njohn.endVacation();<\/pre><\/div>\n\n\n\n<p>Let\u2019s run our program and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>You are now on vacation.\nYou are not on vacation anymore.<\/pre><\/div>\n\n\n\n<p>Our object calls the two methods we defined in our Employee class. This causes the code within those methods to run. When we execute <code>john.startVacation()<\/code>, for example, the value of the <code>isOnVacation<\/code> boolean is set to true, and the message \u201cYou are now on vacation.\u201d is printed to the Java console.<br><\/p>\n\n\n\n<p>Although we\u2019ve defined the variable <code>isOnVacation<\/code> inside our class, we can access the value it has been assigned in a particular object. Consider this code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Employee john = new Employee();\njohn.startVacation();\njohn.endVacation();\nSystem.out.println(john.isOnVacation);\n<\/pre><\/div>\n\n\n\n<p>This code will start and end John\u2019s vacation \u2013 like in our last example \u2013 and then it will print out the value of the <code>isOnVacation<\/code> variable to the console:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>You are now on vacation.\nYou are not on vacation anymore.\nfalse<\/pre><\/div>\n\n\n\n<p>The value of our <code>isOnVacation<\/code> method is <code>false<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java Constructors<\/h2>\n\n\n\n<p>The constructor method allows you to initialize data in a class. In our example above, we declared a variable in the main body of our class but we didn\u2019t initialize it with a default value.<br><\/p>\n\n\n\n<p>Consider the following code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class Employee {\n\tboolean isOnVacation;\n\tpublic Employee() {\n\t\tisOnVacation = false;\n\t\tSystem.out.println(\"Initialized values.\");\n\t}\n\t...\n}<\/pre><\/div>\n\n\n\n<p>Now, let\u2019s create an object of our Employee class:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Employee john = new Employee();\njohn.startVacation();<\/pre><\/div>\n\n\n\n<p>When we create our <code>john<\/code> object, our constructor will automatically run. This method allows you to set the default values that you want your class to hold. Our method returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Initialized values.\nYou are now on vacation.<\/pre><\/div>\n\n\n\n<p>Upon execution, our constructor sets the value of <code>isOnVacation<\/code> to false. It then prints out <code>Initialized values<\/code> to our console.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating Multiple Objects<\/h2>\n\n\n\n<p>What if we have two employees? Can you still use the same class? Yes! That\u2019s the benefit of using classes: you can declare many objects using the same class.<br><\/p>\n\n\n\n<p>Consider the following main program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Employee john = new Employee();\njohn.startVacation();\njohn.endVacation();\nSystem.out.println(john.isOnVacation);\nEmployee ian = new Employee();\nian.startVacation();\nSystem.out.println(ian.isOnVacation);<\/pre><\/div>\n\n\n\n<p>Let\u2019s run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Initialized values.\nYou are now on vacation.\nYou are not on vacation anymore.\nfalse\n  \nInitialized values.\nYou are now on vacation.\ntrue<\/pre><\/div>\n\n\n\n<p>We\u2019ve created two objects of our Employee class: john and ian. In our code, we have started and ended John\u2019s vacation. Then, we created an object for Ian and started his vacation.<br><\/p>\n\n\n\n<p>When we print out the value of <code>john.isOnVacation<\/code>, false is returned; when we do the same for Ian\u2019s object, true is returned. That\u2019s because each object of our class is separate. They use the same blueprint, but they can store their own values.<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/Java-Classes-and-Objects?lite=true\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Classes and objects are the cornerstone of object-oriented programming. Classes allow you to define blueprints, from which you can then define objects.<br><\/p>\n\n\n\n<p>Are you ready for a challenge? Create a program with a class that tracks information about whether a student has passed their test. It should:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Store a variable to keep track of whether the student has passed their test.<\/li>\n\n\n\n<li>Have two methods that change whether the student has passed their test.<\/li>\n\n\n\n<li>Optionally, you could use an \u201cif\u201d statement to calculate whether a student\u2019s test should be marked pass\/fail based on their numerical grade.<\/li>\n<\/ul>\n\n\n\n<p>Now you\u2019re ready to start working with classes and objects in Java like an expert!<br><\/p>\n","protected":false},"excerpt":{"rendered":"What do we mean when we talk about a class in Java? It\u2019s certainly not a class like you\u2019d have in school, with students and teachers. A class is a blueprint for an object in your code. Java is an object-oriented programming language. This means that it includes a number of features that help you&hellip;","protected":false},"author":240,"featured_media":2739,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-19169","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-java"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Java","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use Java Classes and Objects | Career Karma<\/title>\n<meta name=\"description\" content=\"Classes are blueprints that you can use to define objects in your Java code. On Career Karma, learn how to work with Java classes and objects.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/java-class-object\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use Java Classes and Objects\" \/>\n<meta property=\"og:description\" content=\"Classes are blueprints that you can use to define objects in your Java code. On Career Karma, learn how to work with Java classes and objects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-class-object\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-07T12:26:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:53:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"How to Use Java Classes and Objects\",\"datePublished\":\"2020-07-07T12:26:45+00:00\",\"dateModified\":\"2023-12-01T11:53:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/\"},\"wordCount\":811,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-class-object\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/\",\"name\":\"How to Use Java Classes and Objects | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg\",\"datePublished\":\"2020-07-07T12:26:45+00:00\",\"dateModified\":\"2023-12-01T11:53:20+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Classes are blueprints that you can use to define objects in your Java code. On Career Karma, learn how to work with Java classes and objects.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-class-object\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg\",\"width\":1200,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-class-object\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\/\/careerkarma.com\/blog\/java\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use Java Classes and Objects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use Java Classes and Objects | Career Karma","description":"Classes are blueprints that you can use to define objects in your Java code. On Career Karma, learn how to work with Java classes and objects.","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:\/\/careerkarma.com\/blog\/java-class-object\/","og_locale":"en_US","og_type":"article","og_title":"How to Use Java Classes and Objects","og_description":"Classes are blueprints that you can use to define objects in your Java code. On Career Karma, learn how to work with Java classes and objects.","og_url":"https:\/\/careerkarma.com\/blog\/java-class-object\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-07T12:26:45+00:00","article_modified_time":"2023-12-01T11:53:20+00:00","og_image":[{"width":1200,"height":800,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"How to Use Java Classes and Objects","datePublished":"2020-07-07T12:26:45+00:00","dateModified":"2023-12-01T11:53:20+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/"},"wordCount":811,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-class-object\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/","url":"https:\/\/careerkarma.com\/blog\/java-class-object\/","name":"How to Use Java Classes and Objects | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg","datePublished":"2020-07-07T12:26:45+00:00","dateModified":"2023-12-01T11:53:20+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Classes are blueprints that you can use to define objects in your Java code. On Career Karma, learn how to work with Java classes and objects.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-class-object\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/david-rangel-708765-unsplash1.jpg","width":1200,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-class-object\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/careerkarma.com\/blog\/java\/"},{"@type":"ListItem","position":3,"name":"How to Use Java Classes and Objects"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/19169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=19169"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/19169\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/2739"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=19169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=19169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=19169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}