{"id":117580,"date":"2020-03-20T11:57:18","date_gmt":"2020-03-20T11:57:18","guid":{"rendered":"https:\/\/www.softwaretestinghelp.com\/?page_id=117580"},"modified":"2025-04-01T08:29:22","modified_gmt":"2025-04-01T08:29:22","slug":"array-of-objects-in-java","status":"publish","type":"page","link":"https:\/\/www.softwaretestinghelp.com\/array-of-objects-in-java\/","title":{"rendered":"Array Of Objects In Java: How To Create, Initialize And Use"},"content":{"rendered":"<p><strong>In this Java Tutorial, you can Learn to Create, Initialize, Sort the Array of Objects in Java with Complete Code Examples:<\/strong><\/p>\n<p><strong>What is an Array of Objects?<\/strong><\/p>\n<p>As we all know, the Java programming language is all about objects as it is an object-oriented programming language.<\/p>\n<p>If you want to store a single object in your program, then you can do so with the help of a variable of type object. But when you are dealing with numerous objects, then it is advisable to use an array of objects.<\/p>\n<p><strong>=&gt; <a href=\"https:\/\/www.softwaretestinghelp.com\/java\/\">Check Out The Perfect Java Training Guide Here.<\/a><\/strong><\/p>\n<p><em><strong> <\/strong><\/em><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/An-Array-of-Objects-in-Java.png\"><img decoding=\"async\" class=\"alignnone wp-image-117586 size-full\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/An-Array-of-Objects-in-Java.png\" alt=\"Array of Objects in Java\" width=\"650\" height=\"366\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/An-Array-of-Objects-in-Java.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/An-Array-of-Objects-in-Java-300x169.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p>Java is capable of storing objects as elements of the array along with other primitive and custom data types. Note that when you say \u2018array of objects\u2019, it is not the object itself that is stored in the array but the references of the object.<\/p>\n<p>In this tutorial, you will get acquainted with the creation, initialization, sorting as well as examples of the array of objects in Java.<\/p>\n<h2>How To Create An Array Of Objects In Java?<\/h2>\n<p>An array of objects is created using the \u2018Object\u2019 class.<\/p>\n<p><strong>The following statement creates an Array of Objects.<\/strong><\/p>\n<pre>Class_name [] objArray;<\/pre>\n<p><strong>Alternatively, you can also declare an Array of Objects as shown below:<\/strong><\/p>\n<pre>Class_nameobjArray[];<\/pre>\n<p>Both the above declarations imply that objArray is an array of objects.<\/p>\n<p><strong>So, if you have a class \u2018Employee\u2019 then you can create an array of Employee objects as given below:<\/strong><\/p>\n<pre>Employee[] empObjects; \r\nOR\r\nEmployee empObjects[];<\/pre>\n<p>The declarations of the array of objects above will need to be instantiated using \u2018new\u2019 before being used in the program.<\/p>\n<p><strong>You can<\/strong> <strong>declare and instantiate the array of objects as shown below:<\/strong><\/p>\n<pre>Employee[] empObjects = new Employee[2];<\/pre>\n<p><strong>Note<\/strong> that once an array of objects is instantiated like above, the individual elements of the array of objects need to be created using new.<\/p>\n<p>The above statement will create an array of objects \u2018empObjects\u2019 with 2 elements\/object references.<\/p>\n<h3>Initialize Array Of Objects<\/h3>\n<p>Once the array of objects is instantiated, you have to initialize it with values. As the array of objects is different from an array of primitive types, you cannot initialize the array in the way you do with primitive types.<\/p>\n<p>In the case of an array of objects, each element of array i.e. an object needs to be initialized. We already discussed that an array of objects contains references to the actual class objects. Thus, once the array of objects is declared and instantiated, you have to create actual objects of the class.<\/p>\n<p>One way to initialize the array of objects is by using the constructors. When you create actual objects, you can assign initial values to each of the objects by passing values to the constructor. You can also have a separate member method in a class that will assign data to the objects.<\/p>\n<p>The following program shows the initialization of array objects using the constructor.<\/p>\n<p>Here we have used the class Employee. The class has a constructor that takes in two parameters i.e. employee name and employee Id. In the main function, after an array of employees is created, we go ahead and create individual objects of the class employee.<\/p>\n<p>Then we pass initial values to each of the objects using the constructor.<\/p>\n<p><strong>The output of the program shows the<\/strong> <strong>contents of each object that was initialized previously<\/strong>.<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nclass Main{\r\n   public static void main(String args&#x5B;]){\r\n     \/\/create array of employee object  \r\n    Employee&#x5B;] obj = new Employee&#x5B;2] ;\r\n\r\n     \/\/create &amp; initialize actual employee objects using constructor\r\n     obj&#x5B;0] = new Employee(100,&quot;ABC&quot;);\r\n     obj&#x5B;1] = new Employee(200,&quot;XYZ&quot;);\r\n\r\n     \/\/display the employee object data\r\n     System.out.println(&quot;Employee Object 1:&quot;);\r\n     obj&#x5B;0].showData();\r\n     System.out.println(&quot;Employee Object 2:&quot;);\r\n     obj&#x5B;1].showData();\r\n  }\r\n}\r\n\/\/Employee class with empId and name as attributes\r\nclass Employee{\r\n  int empId;\r\n  String name;\r\n  \/\/Employee class constructor\r\n  Employee(inteid, String n){\r\n     empId = eid;\r\n     name = n;\r\n  }\r\npublic void showData(){\r\n   System.out.print(&quot;EmpId = &quot;+empId + &quot;  &quot; + &quot; Employee Name = &quot;+name);\r\n   System.out.println();\r\n }\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Contents-of-each-object-that-was-initialized-previously.png\"><img decoding=\"async\" class=\"alignnone wp-image-117582 size-full\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Contents-of-each-object-that-was-initialized-previously.png\" alt=\"Output - Initializing an Array\" width=\"400\" height=\"132\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Contents-of-each-object-that-was-initialized-previously.png 400w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Contents-of-each-object-that-was-initialized-previously-300x99.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>The example program that we have given below shows a member function of the Employee class that is used to assign the initial values to the Employee objects.<\/p>\n<h3><span style=\"color: #000000;\">Example Program For An Array Of Objects In Java<\/span><\/h3>\n<p>Given is a complete example that demonstrates the array of objects in Java.<\/p>\n<p>In this program, we have an Employee class that has employee Id (empId) and employee name (name) as fields and \u2018setData\u2019 &amp; \u2018showData\u2019 as methods that assign data to employee objects and display the contents of employee objects respectively.<\/p>\n<p>In the main method of the program, we first define an array of Employee objects. Note that this is an array of references and not actual objects. Then using the default constructor, we create actual objects for the Employee class. Next, the objects are assigned data using the setData method.<\/p>\n<p>Lastly, objects invoke the showData method to display the contents of the Employee class objects.<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nclass Main{\r\n   public static void main(String args&#x5B;]){\r\n     \/\/create array of employee object  \r\n     Employee&#x5B;] obj = new Employee&#x5B;2] ;\r\n\r\n     \/\/create actual employee object\r\n     obj&#x5B;0] = new Employee();\r\n     obj&#x5B;1] = new Employee();\r\n\r\n     \/\/assign data to employee objects\r\n     obj&#x5B;0].setData(100,&quot;ABC&quot;);\r\n     obj&#x5B;1].setData(200,&quot;XYZ&quot;);\r\n\r\n     \/\/display the employee object data\r\n     System.out.println(&quot;Employee Object 1:&quot;);\r\n     obj&#x5B;0].showData();\r\n     System.out.println(&quot;Employee Object 2:&quot;);\r\n     obj&#x5B;1].showData();\r\n  }\r\n}\r\n\/\/Employee class with empId and name as attributes\r\nclass Employee{\r\n\tint empId;\r\n\tString name;\r\n\tpublic void setData(intc,String d){\r\n\t\tempId=c;\r\n\t\tname=d;\r\n\t }\r\n\tpublic void showData(){\r\n\t\tSystem.out.print(&quot;EmpId = &quot;+empId + &quot;  &quot; + &quot; Employee Name = &quot;+name);\r\n\t\tSystem.out.println();\r\n\t }\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Display-the-contents-of-the-Employee-class-objects.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-117583\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Display-the-contents-of-the-Employee-class-objects.png\" alt=\"Display the contents of the Employee class objects\" width=\"384\" height=\"142\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Display-the-contents-of-the-Employee-class-objects.png 384w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Display-the-contents-of-the-Employee-class-objects-300x111.png 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/a><\/p>\n<h3>How To Sort An Array Of Objects In Java?<\/h3>\n<p>Like an array of primitive types, an array of objects can also be sorted using the \u2018sort\u2019 method of the Arrays class.<\/p>\n<p>But the difference is that the class to which the objects belong should implement the \u2018Comparable\u2019 interface so that the array of objects are sorted. You also need to override the \u2018compareTo\u2019 method that will decide the field on which the array is to be sorted. The array of objects is sorted in ascending order by default.<\/p>\n<p><strong>The following program shows the sorting of an array of objects.<\/strong> We have used an Employee class for this purpose and the array is sorted based on employee Id (empId).<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\r\nimport java.util.*;\r\n\r\n\/\/employee class implementing comparable interface for array of objects\r\nclass Employee implements Comparable&lt;Employee&gt; {\r\n\tprivate String name;\r\n\tprivateint empId;\r\n\t\/\/constructor\r\n\tpublic Employee(String name, int empId) {\r\n\t\tthis.name = name;\r\n\t\tthis.empId = empId;\r\n\t}\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublicintgetempId() {\r\n\t\treturn empId;\r\n\t}\r\n\t\r\n\t\/\/overridden functions since we are working with array of objects\r\n\t@Override\r\n\tpublic String toString() {\r\n\t\treturn &quot;{&quot; + &quot;name='&quot; + name + '\\'' +\r\n\t\t\t\t\t&quot;, EmpId=&quot; + empId + '}';\r\n\t}\r\n\r\n\t\/\/compareTo method overridden for sorting array of objects\r\n\t@Override\r\n\tpublicint compareTo(Employee o) {\r\n\t\tif (this.empId != o.getempId()) {\r\n\t\t\treturnthis.empId - o.getempId();\r\n\t\t}\r\n\t\treturnthis.name.compareTo(o.getName());\r\n\t}\r\n}\r\n\r\n\/\/main class\r\nclass Main {\r\n\tpublic static void main(String&#x5B;] args)\r\n\t{\r\n\t\t\/\/array of Employee objects\r\n\t\tEmployee&#x5B;] employees = { new Employee(&quot;Rick&quot;, 1), new Employee(&quot;Sam&quot;, 20),\r\n\t\t\t\t\tnew Employee(&quot;Adi&quot;, 5), new Employee(&quot;Ben&quot;, 10) };\r\n\r\n\t\t\/\/print original array\r\n\t\tSystem.out.println(&quot;Original Array of Employee objects:&quot;);\r\n\t\tSystem.out.println(Arrays.toString(employees));\r\n\t\t\/\/sort array on empId\r\n\t\tArrays.sort(employees);\r\n\t\t\/\/display sorted array\r\n\t\tSystem.out.println(&quot;\\nSorted Array of Employee objects:&quot;);\r\n\t\tSystem.out.println(Arrays.toString(employees));\r\n\t}\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Array-is-sorted-based-on-employee-Id.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-117584\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Array-is-sorted-based-on-employee-Id.png\" alt=\"Array is sorted based on employee Id\" width=\"740\" height=\"188\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Array-is-sorted-based-on-employee-Id.png 740w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Array-is-sorted-based-on-employee-Id-300x76.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p>Note that in the above program, the Employee class implements Comparable interface. Secondly, the method compareTo is overridden to sort the given array of objects on the empId field.<\/p>\n<p>Also, the method \u2018toString\u2019 is overridden in order to facilitate the conversion of the array of objects to a string.<\/p>\n<h3>Frequently Asked Questions<\/h3>\n<p><strong><span style=\"color: #ff6600;\">Q #1) Can you have an Array of Objects in Java?<\/span><\/strong><\/p>\n<p><strong>Answer:<\/strong> Yes. Java can have an array of objects just like how it can have an array of primitive types.<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #2) What is an Array of Objects in Java?<\/span><\/strong><\/p>\n<p><strong>Answer:<\/strong> In Java, an array is a dynamically created object that can have elements that are primitive data types or objects. The array may be assigned variables that are of type object.<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #3) How do you Sort Objects in Java?<\/span><\/strong><\/p>\n<p><strong>Answer:<\/strong> To sort objects in Java, we need to implement the \u2018Comparable\u2019 interface and override the \u2018compareTo\u2019 method according to a particular field. Then we can use the \u2018Arrays.sort\u2019 method to sort an array of objects.<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #4) How do you Sort Objects in ArrayList?<\/span><\/strong><\/p>\n<p><strong>Answer:<\/strong> ArrayList can be sorted using the Collections.sort() method directly. The Collections.sort() method sorts the elements naturally in ascending order.<\/p>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we discussed the topic \u2018Array of Objects\u2019 along with the various subtopics related to an array of objects. We saw examples of initializing &amp; sorting an array of objects.<\/p>\n<p>For sorting the class whose objects are to be sorted should implement the \u2018Comparable\u2019 interface and also override the \u2018compareTo\u2019 method. To print the contents of the \u2018Array of objects\u2019, we should also override the \u2018toString\u2019 method so that we can write all the contents of each object.<\/p>\n<p><strong>=&gt; <a href=\"https:\/\/www.softwaretestinghelp.com\/java\/\">Visit Here To See The Java Training Series For All.<\/a><\/strong><\/p>\n\r\n\t\t\t<div id=\"daexthefup-container\"\r\n\t\t\t\tclass=\"daexthefup-container daexthefup-layout-stacked daexthefup-alignment-center\"\r\n\t\t\t\tdata-post-id=\"117580\">\r\n\r\n\t\t\t\t<div class=\"daexthefup-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefup-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefup-title\">Was this helpful?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefup-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefup-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-yes daexthefup-button daexthefup-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-up-cls-1{fill:#c9c9c9;}.thumb-up-cls-2{fill:#e1e1e1;}.thumb-up-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_up\">\r\n                        <path class=\"thumb-up-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-up-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"20\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,9.06l-.49-.1c-.81-.17-1.61.35-1.78,1.16l-5.3,11.74c-.17.81,3.16,1.61,3.97,1.78l1.96.41c.81.17,1.61-.35,1.78-1.16l2.18-10.27c.34-1.61-.7-3.21-2.31-3.56Z\" \/>\r\n                            <path class=\"thumb-up-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,20h-18.67c-.83,0-1.5.67-1.5,1.5v12c0,.83.67,1.5,1.5,1.5h16.27c.71,0,1.33-.5,1.47-1.21l2.4-12c.19-.93-.53-1.8-1.47-1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefup-no daexthefup-button daexthefup-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.thumb-down-cls-1{fill:#c9c9c9;}.thumb-down-cls-2{fill:#e1e1e1;}.thumb-down-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"thumb_down\">\r\n                        <path class=\"thumb-down-cls-2 daexthefup-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <g>\r\n                            <rect class=\"thumb-down-cls-3 daexthefup-icon-secondary-color\" x=\"10\" y=\"13\" width=\"6\" height=\"15\" rx=\"1.5\" ry=\"1.5\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m30.57,38.94l-.49.1c-.81.17-1.61-.35-1.78-1.16l-5.3-11.74c-.17-.81,3.16-1.61,3.97-1.78l1.96-.41c.81-.17,1.61.35,1.78,1.16l2.18,10.27c.34,1.61-.7,3.21-2.31,3.56Z\" \/>\r\n                            <path class=\"thumb-down-cls-1 daexthefup-icon-primary-color\" d=\"m38.17,28h-18.67c-.83,0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5,1.5-1.5h16.27c.71,0,1.33.5,1.47,1.21l2.4,12c.19.93-.53,1.8-1.47,1.8Z\" \/>\r\n                        <\/g>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-comment\">\r\n\t\t\t\t\t<div class=\"daexthefup-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefup-comment-label\" class=\"daexthefup-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefup-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefup-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefup-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefup-comment-textarea\" class=\"daexthefup-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Type your message\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefup-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-submit daexthefup-button\">Submit<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefup-comment-cancel daexthefup-button\">Cancel<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefup-successful-submission-text\">Thanks for your feedback!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>In this Java Tutorial, you can Learn to Create, Initialize, Sort the Array of Objects in Java with Complete Code Examples: What is an Array of Objects? As we all know, the Java programming language is all about objects as it is an object-oriented programming language. If you want to &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Array Of Objects In Java: How To Create, Initialize And Use\" class=\"read-more button\" href=\"https:\/\/www.softwaretestinghelp.com\/array-of-objects-in-java\/#more-117580\" aria-label=\"Read more about Array Of Objects In Java: How To Create, Initialize And Use\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":117586,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_helpful_pro_status":1,"footnotes":""},"categories":[408],"tags":[],"class_list":{"0":"post-117580","1":"page","2":"type-page","3":"status-publish","4":"has-post-thumbnail","6":"category-java"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/117580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/comments?post=117580"}],"version-history":[{"count":0,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/117580\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media\/117586"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media?parent=117580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/categories?post=117580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/tags?post=117580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}