{"id":39308,"date":"2024-10-16T03:09:30","date_gmt":"2024-10-16T08:39:30","guid":{"rendered":"https:\/\/www.javaassignmenthelp.com\/blog\/?p=39308"},"modified":"2024-10-17T00:47:36","modified_gmt":"2024-10-17T06:17:36","slug":"difference-b-w-class-and-an-object-in-java","status":"publish","type":"post","link":"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/","title":{"rendered":"What\u2019s the Difference b\/w Class and an Object in Java?"},"content":{"rendered":"\n<p>Java is a high-level language and an object-oriented programming language. OOP is a paradigm that focuses on objects, which are collections of data called attributes, and functions or procedures known as methods. This is different from a procedural program, where one is mainly concerned with procedures or functions that work on data. In this blog, you will read the key Difference b\/w Class and an Object in Java with real-world examples.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_68_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Overview<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><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><\/span><\/a><\/span><\/div>\n<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:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#the-core-principles-of-oop-are\" title=\"The core principles of OOP are:\">The core principles of OOP are:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#what-is-a-class-in-java\" title=\"What is a Class in Java?\">What is a Class in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#components-of-a-class\" title=\"Components of a Class\">Components of a Class<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#3-what-is-an-object-in-java\" title=\"3. What is an Object in Java?\">3. What is an Object in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#difference-bw-class-and-an-object-in-java\" title=\"Difference b\/w Class and an Object in Java\">Difference b\/w Class and an Object 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:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#the-role-of-constructors\" title=\"The Role of Constructors\">The Role of Constructors<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#concepts-related-to-classes-and-objects\" title=\"Concepts Related to Classes and Objects\">Concepts Related to Classes and Objects<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#relationship-between-class-and-objects\" title=\"Relationship between Class and Objects?\">Relationship between Class and Objects?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#faqs\" title=\"FAQs\">FAQs<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"the-core-principles-of-oop-are\"><\/span>The core principles of OOP are:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Encapsulation<\/strong>: involves packaging the data on which the methods work and the methods into one unit or class.<\/p>\n\n\n\n<p><strong>Abstraction:<\/strong> The concept of concealing the internal workings of a system and presenting only what it is capable of doing.<\/p>\n\n\n\n<p><strong>Inheritance:<\/strong> The process by which one class derives properties or behavior from another class that has already defined them.<\/p>\n\n\n\n<p><strong>Polymorphism:<\/strong> By definition, this makes an operation polymorphic\u2014methods can have the same name but behave differently depending on what they are operating over.<\/p>\n\n\n\n<p>It is now apparent that every object-oriented programming language, including Java, was developed to employ all these concepts in modeling real-life objects and systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"what-is-a-class-in-java\"><\/span>What is a Class in Java?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In Java, a class can be described as a straightforward blueprint or form that outlines how objects should be created. It explains the shape and characteristics of the objects to be produced from it, including data and methods. A class is not a storage of any data; it simply tells you how objects can be created.<\/p>\n\n\n\n<p>In fact, a class is like a blueprint for a house. The blueprint (class) outlines the number of rooms and arrangements, but it is made of something other than bricks. It is only when the house (object) has been constructed that it gains characterization in terms of materiality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"components-of-a-class\"><\/span>Components of a Class<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A class in Java typically consists of:<\/p>\n\n\n\n<p><strong>Fields\/Attributes:<\/strong> These contain the state or data of the object as it is referred to in-class lessons.<\/p>\n\n\n\n<p><strong>Methods: <\/strong>These are the activities that indicate operation in the object.<\/p>\n\n\n\n<p><strong>Constructors: <\/strong>These are methods that are invoked at the time an object is created from the class.<\/p>\n\n\n\n<p><strong>Access Modifiers: <\/strong>Terms such as public, private, and protected that characterize the state of accessibility of the class and its constituents.<\/p>\n\n\n\n<p><strong>Syntax of a Class<\/strong><\/p>\n\n\n\n<p>public class Car {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;\/\/ Attributes (fields)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;String brand;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;String model;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;int year;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;\/\/ Constructor<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public Car(String brand, String model, int year) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.brand = brand;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.model = model;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.year = year;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;\/\/ Method (behavior)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public void StartEngine() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println(&#8220;The engine of &#8221; + brand + &#8221; &#8221; + model + &#8221; is started.&#8221;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>In this example, the class Car has three fields (brand, model, year), and method startEngine (). This also contains a constructor that sets the values of attributes of the object being formed at the time of the creation of the object of the Car.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3-what-is-an-object-in-java\"><\/span>3. What is an Object in Java?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>An object is a practical example of a class. It is the real thing that possesses information and can execute activities associated with the techniques described in the class of the object. Objects are usually called instances because they are concrete examples of a class. An Object is an entity having a state, which is exhibited by fields or attributes, and behavior, which is exhibited by methods.<\/p>\n\n\n\n<p>To put it more simply, while a class is a design, an object is actually a structure built from that design plan.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating an Object<\/h3>\n\n\n\n<p>In Java, to instantiate an object, you type new before the class name; this allocates space for an object of that particular class and returns a reference to the object.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<p>Car myCar = new Car(&#8220;Toyota&#8221;, &#8220;Corolla&#8221;, 2020);<\/p>\n\n\n\n<p>myCar.StartEngine();<\/p>\n\n\n\n<p>In this case, myCar is an instance of Car. The new Car class construction(\u201cmodel,\u201d \u201cmodel,\u201d year\uff09: \u201cToyota,\u201d \u201cCorolla,\u201d 2020 creates a new object of the class Car.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Object Characteristics<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>State&nbsp;<\/strong><\/h3>\n\n\n\n<p>Attributes are used to describe the Probability of the object in question at a given time if it has to be challenged. For instance, in my state, the brand is \u201cToyota, the model is \u201cCorolla, and the&nbsp;year is 2020.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Behavior<\/strong><\/h4>\n\n\n\n<p>That is why the \u2018StartEngine\u2019 method can be regarded as a behavior in an object that can be initiated. When this method is called, it turns on the car\u2019s engine, changing its state from state_engine_off to state_engine_on.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Identity<\/strong><\/h4>\n\n\n\n<p>Every object has its identifier, which can be the same as that of some other objects, although its state can also be the same as that of other objects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"difference-bw-class-and-an-object-in-java\"><\/span>Difference b\/w Class and an Object in Java<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Knowledge of what the class is and what an object is remains essential when working with Java language. Below are the key distinctions:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.javaassignmenthelp.com\/blog\/wp-content\/uploads\/2024\/10\/KEY-DIFFERENCES-1024x1024.jpg\" alt=\"Difference b\/w Class and an Object in Java\" class=\"wp-image-39310\" srcset=\"https:\/\/www.javaassignmenthelp.com\/blog\/wp-content\/uploads\/2024\/10\/KEY-DIFFERENCES-1024x1024.jpg 1024w, https:\/\/www.javaassignmenthelp.com\/blog\/wp-content\/uploads\/2024\/10\/KEY-DIFFERENCES-300x300.jpg 300w, https:\/\/www.javaassignmenthelp.com\/blog\/wp-content\/uploads\/2024\/10\/KEY-DIFFERENCES-150x150.jpg 150w, https:\/\/www.javaassignmenthelp.com\/blog\/wp-content\/uploads\/2024\/10\/KEY-DIFFERENCES-768x768.jpg 768w, https:\/\/www.javaassignmenthelp.com\/blog\/wp-content\/uploads\/2024\/10\/KEY-DIFFERENCES.jpg 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">1. Blueprint vs. Instance<\/h4>\n\n\n\n<p>Class: A class is a form with the structural and methodological features of objects. But it has no real or recorded information.<\/p>\n\n\n\n<p>Object: An object is an instance of a class. It provides real information and is involved in notification with other parties in some programs.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Memory Allocation<\/h4>\n\n\n\n<p><strong>Class:<\/strong> In fact, no memory space is created when a class is declared. The class is implemented solely in the source code to help instantiate objects.<\/p>\n\n\n\n<p><strong>Object: <\/strong>Memory is acquired when objects are created using new keywords. Depending on their size, memory can increase or decrease. Every object is a point in memory; it has its data (state).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Data Representation<\/h4>\n\n\n\n<p><strong>Class: <\/strong>Unlike a class that does not contain data, a class defines how data will look within objects.<\/p>\n\n\n\n<p><strong>Object:<\/strong> An object encapsulates real data and the procedures to process this data. For instance, the Car class doesn\u2019t contain any specific car data until you create objects such as the myCar object and the yourCar object.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Behavior and Actions<\/h4>\n\n\n\n<p>Class: The class defines the set of actions that an object may use, but the class itself does not act.<\/p>\n\n\n\n<p>Object: Objects can also perform actions such as starting an engine or calculating a value by simply calling the class\u2019s methods.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. Reusability<\/h4>\n\n\n\n<p><strong>Class: <\/strong>Classes, in this case, are like blueprints. You can have many individual objects of a particular class, yet the structure and behaviors of that class do not need to be created new.<\/p>\n\n\n\n<p><strong>Object:&nbsp;<\/strong><\/p>\n\n\n\n<p>Each particular object stores data to which it alone has access, while all objects possess the same attribute structure if they exist in the same class.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"the-role-of-constructors\"><\/span>The Role of Constructors<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A constructor is an instance of a class that is used whenever an object is to be created. It is mainly used to set the first value of the object\u2019s properties at the time when the object is created.<\/p>\n\n\n\n<p>Default Constructor: Unlike in C++, if you do not explicitly specify the constructor of your class, Java enables a default constructor, which initializes the object\u2019s attributes to default values: null for objects and 0 for the numeric types.<\/p>\n\n\n\n<p>Parameterized Constructor: This is also a good place to call a parameterized constructor to set the initial values of attributes, as shown above.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.javaassignmenthelp.com\/blog\/java-project-ideas\/\">Also Read: 29+ Exciting Java Project Ideas for All Skill Levels<\/a><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"concepts-related-to-classes-and-objects\"><\/span>Concepts Related to Classes and Objects<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>1. Static vs. Non-Static Members<\/strong><\/p>\n\n\n\n<p><strong>Static Members:&nbsp;<\/strong><\/p>\n\n\n\n<p>Approximers are class fields or methods and the latter is not an object in some object. That is, as some would have it, static members of a class are its properties and the usage of the member in question is applied to all instances of the class.<\/p>\n\n\n\n<p>Non-Static Members: Each class object has at least one non-static field or method. These members are depicted here as images of a single production object.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<p>public class Car {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;static String manufacturer = \u201cGeneral Motors\u201d; static field<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;It contains string model; \/\/ Non-static field<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public void display() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.writeline(manufacturer + \u201c makes \u201c + model)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. The Object Class<\/h3>\n\n\n\n<p>In Java, each class has an Object class as its immediate superclass, regardless of whether it is declared in the class header. The Virtual Object type in Java has many important methods. For all objects of Java, it is possible to get to, for example, toString(), hashCode() and equals().<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Garbage Collection and Object Lifecycle<\/h3>\n\n\n\n<p>Java also employs automatic memory management through garbage collecting, where the JVM collects memory used by objects that are no longer in use. Some Java programs come with garbage collection, but knowing when objects are collectible requires a significant effort in optimizing the resources used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"relationship-between-class-and-objects\"><\/span>Relationship between Class and Objects?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The relationship between a class and an object is essential in OOP:<\/p>\n\n\n\n<p><strong>Class to Object: <\/strong>A class is said to be a blueprint for making objects. It prescribes the characteristics and the process that an object is to exhibit.<\/p>\n\n\n\n<p><strong>Object to Class:<\/strong> Objects are the particular example of the class. They are the runtime entities that hold data to perform operations and are involved in operations between them.<\/p>\n\n\n\n<p>In short, classes are only the declaration of a set of objects, and objects are actual instances of objects created during the runtime.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>It seems there is no better way of introducing the much-hyped object-oriented programming in the context of Java than to start by explaining the crucial difference between two basics that every programmer should be wholly aware of the class and the object. While they are very similar, they serve different purposes and are located at different levels of the application architecture.<\/p>\n\n\n\n<p>A class can be seen as a blueprint, a template or even a design specification for how objects need to be built and which actions they are capable of. It enables the definition of attributes (fields) and behaviors (methods) while not being able to store information by itself. The class mainly resides at the level of concept definition in the code.<\/p>\n\n\n\n<p>Therefore, classes act as templates that give an application structure and form, and objects are the actual, tangible, real-world manifestations of those forms. Together, they constitute the heart of Java\u2019s object-oriented organizational.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"faqs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1729067806593\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">\u00a0What is the biggest distinction between a class and an object in Java?<br><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>A class is a blueprint of objects and the methods associated with them in addition to a set of values that virtually defines what the object should be However, an object as known as an instance is the actual version of this class in form of data and actions.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1729067875938\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">\u00a0When is memory allocated for a class and an object?<br><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Array does not allocate memory for just a class but it does allocate memory for the objects created from that class. Actually objects occupy memory since they contain real data while the class just offers an outline.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Java is a high-level language and an object-oriented programming language. OOP is a paradigm that focuses on objects, which are &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"What\u2019s the Difference b\/w Class and an Object in Java?\" class=\"read-more button\" href=\"https:\/\/www.javaassignmenthelp.com\/blog\/difference-b-w-class-and-an-object-in-java\/#more-39308\" aria-label=\"Read more about What\u2019s the Difference b\/w Class and an Object in Java?\">Read more<\/a><\/p>\n","protected":false},"author":34,"featured_media":39309,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[336],"tags":[],"class_list":["post-39308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/posts\/39308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/comments?post=39308"}],"version-history":[{"count":1,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/posts\/39308\/revisions"}],"predecessor-version":[{"id":39311,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/posts\/39308\/revisions\/39311"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/media\/39309"}],"wp:attachment":[{"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/media?parent=39308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/categories?post=39308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javaassignmenthelp.com\/blog\/wp-json\/wp\/v2\/tags?post=39308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}