{"id":1152,"date":"2022-02-24T18:56:22","date_gmt":"2022-02-24T18:56:22","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=1152"},"modified":"2022-02-24T18:56:22","modified_gmt":"2022-02-24T18:56:22","slug":"java-operators","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/02\/24\/java-operators\/","title":{"rendered":"Java Operators"},"content":{"rendered":"\n<p>In this tutorial, you&#8217;ll learn about different types of operators in Java, their syntax and how to use them with the help of examples.<\/p>\n\n\n\n<p id=\"operator-meaning\">Operators are symbols that perform operations on variables and values. For example,&nbsp;<code>+<\/code>&nbsp;is an operator used for addition, while&nbsp;<code>*<\/code>&nbsp;is also an operator used for multiplication.<\/p>\n\n\n\n<p>Operators in Java can be classified into 5 types:<\/p>\n\n\n\n<ol><li>Arithmetic Operators<\/li><li>Assignment Operators<\/li><li>Relational Operators<\/li><li>Logical Operators<\/li><li>Unary Operators<\/li><li>Bitwise Operators<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"assignment\">1. Java Arithmetic Operators<\/h2>\n\n\n\n<p>Arithmetic operators are used to perform arithmetic operations on variables and data. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a + b;<\/code><\/pre>\n\n\n\n<p>Here, the&nbsp;<code>+<\/code>&nbsp;operator is used to add two variables&nbsp;<var>a<\/var>&nbsp;and&nbsp;<var>b<\/var>. Similarly, there are various other arithmetic operators in Java.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td>Operator<\/td><td>Operation<\/td><\/tr><tr><td><code>+<\/code><\/td><td>Addition<\/td><\/tr><tr><td><code>-<\/code><\/td><td>Subtraction<\/td><\/tr><tr><td><code>*<\/code><\/td><td>Multiplication<\/td><\/tr><tr><td><code>\/<\/code><\/td><td>Division<\/td><\/tr><tr><td><code>%<\/code><\/td><td>Modulo Operation (Remainder after division)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example 1: Arithmetic Operators<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Main {\n  public static void main(String&#91;] args) {\n    \n    \/\/ declare variables\n    int a = 12, b = 5;\n\n    \/\/ addition operator\n    System.out.println(\"a + b = \" + (a + b));\n\n    \/\/ subtraction operator\n    System.out.println(\"a - b = \" + (a - b));\n\n    \/\/ multiplication operator\n    System.out.println(\"a * b = \" + (a * b));\n\n    \/\/ division operator\n    System.out.println(\"a \/ b = \" + (a \/ b));\n\n    \/\/ modulo operator\n    System.out.println(\"a % b = \" + (a % b));\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><samp>a + b = 17\na - b = 7 \na * b = 60\na \/ b = 2 \na % b = 2 <\/samp><\/code><\/pre>\n\n\n\n<p>In the above example, we have used&nbsp;<code>+<\/code>,&nbsp;<code>-<\/code>, and&nbsp;<code>*<\/code>&nbsp;operators to compute addition, subtraction, and multiplication operations.<\/p>\n\n\n\n<p><strong>\/ Division Operator<\/strong><\/p>\n\n\n\n<p>Note the operation,&nbsp;<code>a \/ b<\/code>&nbsp;in our program. The&nbsp;<code>\/<\/code>&nbsp;operator is the division operator.<\/p>\n\n\n\n<p>If we use the division operator with two integers, then the resulting quotient will also be an integer. And, if one of the operands is a floating-point number, we will get the result will also be in floating-point.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>In Java,\n\n(9 \/ 2) is 4\n(9.0 \/ 2) is 4.5\n(9 \/ 2.0) is 4.5\n(9.0 \/ 2.0) is 4.5<\/code><\/pre>\n\n\n\n<p><strong>% Modulo Operator<\/strong><\/p>\n\n\n\n<p>The modulo operator&nbsp;<code>%<\/code>&nbsp;computes the remainder. When&nbsp;<code>a = 7<\/code>&nbsp;is divided by&nbsp;<code>b = 4<\/code>, the remainder is&nbsp;<strong>3<\/strong>.<\/p>\n\n\n\n<p><strong>Note<\/strong>: The&nbsp;<code>%<\/code>&nbsp;operator is mainly used with integers.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"assignment\">2. Java Assignment Operators<\/h2>\n\n\n\n<p>Assignment operators are used in Java to assign values to variables. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int age;\nage = 5;<\/code><\/pre>\n\n\n\n<p>Here,&nbsp;<code>=<\/code>&nbsp;is the assignment operator. It assigns the value on its right to the variable on its left. That is,&nbsp;<strong>5<\/strong>&nbsp;is assigned to the variable&nbsp;<var>age<\/var>.<\/p>\n\n\n\n<p>Let&#8217;s see some more assignment operators available in Java.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><th>Operator<\/th><th>Example<\/th><th>Equivalent to<\/th><\/tr><tr><td><code>=<\/code><\/td><td><code>a = b;<\/code><\/td><td><code>a = b;<\/code><\/td><\/tr><tr><td><code>+=<\/code><\/td><td><code>a += b;<\/code><\/td><td><code>a = a + b;<\/code><\/td><\/tr><tr><td><code>-=<\/code><\/td><td><code>a -= b;<\/code><\/td><td><code>a = a - b;<\/code><\/td><\/tr><tr><td><code>*=<\/code><\/td><td><code>a *= b;<\/code><\/td><td><code>a = a * b;<\/code><\/td><\/tr><tr><td><code>\/=<\/code><\/td><td><code>a \/= b;<\/code><\/td><td><code>a = a \/ b;<\/code><\/td><\/tr><tr><td><code>%=<\/code><\/td><td><code>a %= b;<\/code><\/td><td><code>a = a % b;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example 2: Assignment Operators<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Main {\n  public static void main(String&#91;] args) {\n    \n    \/\/ create variables\n    int a = 4;\n    int var;\n\n    \/\/ assign value using =\n    var = a;\n    System.out.println(\"var using =: \" + var);\n\n    \/\/ assign value using =+\n    var += a;\n    System.out.println(\"var using +=: \" + var);\n\n    \/\/ assign value using =*\n    var *= a;\n    System.out.println(\"var using *=: \" + var);\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><samp>var using =: 4\nvar using +=: 8 \nvar using *=: 32<\/samp><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"relational\">3. Java Relational Operators<\/h2>\n\n\n\n<p>Relational operators are used to check the relationship between two operands. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ check if a is less than b\na &lt; b;<\/code><\/pre>\n\n\n\n<p>Here,&nbsp;<code>&lt;<\/code>&nbsp;operator is the relational operator. It checks if&nbsp;<var>a<\/var>&nbsp;is less than&nbsp;<var>b<\/var>&nbsp;or not.<\/p>\n\n\n\n<p>It returns either&nbsp;<code>true<\/code>&nbsp;or&nbsp;<code>false<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><th>Operator<\/th><th>Description<\/th><th>Example<\/th><\/tr><tr><td><code>==<\/code><\/td><td>Is Equal To<\/td><td><code>3 == 5<\/code> returns <strong>false<\/strong><\/td><\/tr><tr><td><code>!=<\/code><\/td><td>Not Equal To<\/td><td><code>3 != 5<\/code> returns <strong>true<\/strong><\/td><\/tr><tr><td><code>&gt;<\/code><\/td><td>Greater Than<\/td><td><code>3 &gt; 5<\/code> returns <strong>false<\/strong><\/td><\/tr><tr><td><code>&lt;<\/code><\/td><td>Less Than<\/td><td><code>3 &lt; 5<\/code> returns <strong>true<\/strong><\/td><\/tr><tr><td><code>&gt;=<\/code><\/td><td>Greater Than or Equal To<\/td><td><code>3 &gt;= 5<\/code> returns <strong>false<\/strong><\/td><\/tr><tr><td><code>&lt;=<\/code><\/td><td>Less Than or Equal To<\/td><td><code>3 &lt;= 5<\/code> returns <strong>true<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example 3: Relational Operators<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Main {\n  public static void main(String&#91;] args) {\n    \n    \/\/ create variables\n    int a = 7, b = 11;\n\n    \/\/ value of a and b\n    System.out.println(\"a is \" + a + \" and b is \" + b);\n\n    \/\/ == operator\n    System.out.println(a == b);  \/\/ false\n\n    \/\/ != operator\n    System.out.println(a != b);  \/\/ true\n\n    \/\/ &gt; operator\n    System.out.println(a &gt; b);  \/\/ false\n\n    \/\/ &lt; operator\n    System.out.println(a &lt; b);  \/\/ true\n\n    \/\/ &gt;= operator\n    System.out.println(a &gt;= b);  \/\/ false\n\n    \/\/ &lt;= operator\n    System.out.println(a &lt;= b);  \/\/ true\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Relational operators are used in decision making and loops.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"logical\">4. Java Logical Operators<\/h2>\n\n\n\n<p>Logical operators are used to check whether an expression is&nbsp;<code>true<\/code>&nbsp;or&nbsp;<code>false<\/code>. They are used in decision making.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><th>Operator<\/th><th>Example<\/th><th>Meaning<\/th><\/tr><tr><td><code>&amp;&amp;<\/code> (Logical AND)<\/td><td>expression1 <strong>&amp;&amp;<\/strong> expression2<\/td><td><code>true<\/code> only if both <var>expression1<\/var> and <var>expression2<\/var> are <code>true<\/code><\/td><\/tr><tr><td><code>||<\/code> (Logical OR)<\/td><td>expression1 <strong>||<\/strong> expression2<\/td><td><code>true<\/code> if either <var>expression1<\/var> or <var>expression2<\/var> is <code>true<\/code><\/td><\/tr><tr><td><code>!<\/code> (Logical NOT)<\/td><td><strong>!<\/strong>expression<\/td><td><code>true<\/code> if <var>expression<\/var> is <code>false<\/code> and vice versa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Example 4: Logical Operators<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Main {\n  public static void main(String&#91;] args) {\n\n    \/\/ &amp;&amp; operator\n    System.out.println((5 &gt; 3) &amp;&amp; (8 &gt; 5));  \/\/ true\n    System.out.println((5 &gt; 3) &amp;&amp; (8 &lt; 5));  \/\/ false\n\n    \/\/ || operator\n    System.out.println((5 &lt; 3) || (8 &gt; 5));  \/\/ true\n    System.out.println((5 &gt; 3) || (8 &lt; 5));  \/\/ true\n    System.out.println((5 &lt; 3) || (8 &lt; 5));  \/\/ false\n\n    \/\/ ! operator\n    System.out.println(!(5 == 3));  \/\/ true\n    System.out.println(!(5 &gt; 3));  \/\/ false\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Working of Program<\/strong><\/p>\n\n\n\n<ul><li><code>(5 &gt; 3) &amp;&amp; (8 &gt; 5)<\/code>&nbsp;returns&nbsp;<code>true<\/code>&nbsp;because both&nbsp;<code>(5 &gt; 3)<\/code>&nbsp;and&nbsp;<code>(8 &gt; 5)<\/code>&nbsp;are&nbsp;<code>true<\/code>.<\/li><li><code>(5 &gt; 3) &amp;&amp; (8 &lt; 5)<\/code>&nbsp;returns&nbsp;<code>false<\/code>&nbsp;because the expression&nbsp;<code>(8 &lt; 5)<\/code>&nbsp;is&nbsp;<code>false<\/code>.<\/li><li><code>(5 &lt; 3) || (8 &gt; 5)<\/code>&nbsp;returns&nbsp;<code>true<\/code>&nbsp;because the expression&nbsp;<code>(8 &gt; 5)<\/code>&nbsp;is&nbsp;<code>true<\/code>.<\/li><li><code>(5 &gt; 3) &amp;&amp; (8 &gt; 5)<\/code>&nbsp;returns&nbsp;<code>true<\/code>&nbsp;because the expression&nbsp;<code>(5 &gt; 3)<\/code>&nbsp;is&nbsp;<code>true<\/code>.<\/li><li><code>(5 &gt; 3) &amp;&amp; (8 &gt; 5)<\/code>&nbsp;returns&nbsp;<code>false<\/code>&nbsp;because both&nbsp;<code>(5 &lt; 3)<\/code>&nbsp;and&nbsp;<code>(8 &lt; 5)<\/code>&nbsp;are&nbsp;<code>false<\/code>.<\/li><li><code>!(5 == 3)<\/code>&nbsp;returns true because&nbsp;<code>5 == 3<\/code>&nbsp;is&nbsp;<code>false<\/code>.<\/li><li><code>!(5 &gt; 3)<\/code>&nbsp;returns false because&nbsp;<code>5 &gt; 3<\/code>&nbsp;is&nbsp;<code>true<\/code>.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"unary\">5. Java Unary Operators<\/h2>\n\n\n\n<p>Unary operators are used with only one operand. For example,&nbsp;<code>++<\/code>&nbsp;is a unary operator that increases the value of a variable by&nbsp;<strong>1<\/strong>. That is,&nbsp;<code>++5<\/code>&nbsp;will return&nbsp;<strong>6<\/strong>.<\/p>\n\n\n\n<p>Different types of unary operators are:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><th>Operator<\/th><th>Meaning<\/th><\/tr><tr><td><code>+<\/code><\/td><td><strong>Unary plus<\/strong>: not necessary to use since numbers are positive without using it<\/td><\/tr><tr><td><code>-<\/code><\/td><td><strong>Unary minus<\/strong>: inverts the sign of an expression<\/td><\/tr><tr><td><code>++<\/code><\/td><td><strong>Increment operator<\/strong>: increments value by 1<\/td><\/tr><tr><td><code>--<\/code><\/td><td><strong>Decrement operator<\/strong>: decrements value by 1<\/td><\/tr><tr><td><code>!<\/code><\/td><td><strong>Logical complement operator<\/strong>: inverts the value of a boolean<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"increment-decrement\">Increment and Decrement Operators<\/h2>\n\n\n\n<p>Java also provides increment and decrement operators:&nbsp;<code>++<\/code>&nbsp;and&nbsp;<code>--<\/code>&nbsp;respectively.&nbsp;<code>++<\/code>&nbsp;increases the value of the operand by&nbsp;<strong>1<\/strong>, while&nbsp;<code>--<\/code>&nbsp;decrease it by&nbsp;<strong>1<\/strong>. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int num = 5;\n\n\/\/ increase num by 1\n++num;<\/code><\/pre>\n\n\n\n<p>Here, the value of&nbsp;<var>num<\/var>&nbsp;gets increased to&nbsp;<strong>6<\/strong>&nbsp;from its initial value of&nbsp;<strong>5<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Example 5: Increment and Decrement Operators<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>class Main {\n  public static void main(String&#91;] args) {\n    \n    \/\/ declare variables\n    int a = 12, b = 12;\n    int result1, result2;\n\n    \/\/ original value\n    System.out.println(\"Value of a: \" + a);\n\n    \/\/ increment operator\n    result1 = ++a;\n    System.out.println(\"After increment: \" + result1);\n\n    System.out.println(\"Value of b: \" + b);\n\n    \/\/ decrement operator\n    result2 = --b;\n    System.out.println(\"After decrement: \" + result2);\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><samp>Value of a: 12\nAfter increment: 13\nValue of b: 12     \nAfter decrement: 11<\/samp><\/code><\/pre>\n\n\n\n<p>In the above program, we have used the ++ and &#8212; operator as&nbsp;<strong>prefixes (++a, &#8211;b)<\/strong>. We can also use these operators as&nbsp;<strong>postfix (a++, b++)<\/strong>.<\/p>\n\n\n\n<p>There is a slight difference when these operators are used as prefix versus when they are used as a postfix.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"bitwise\">6. Java Bitwise Operators<\/h2>\n\n\n\n<p>Bitwise operators in Java are used to perform operations on individual bits. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Bitwise complement Operation of 35\n\n35 = 00100011 (In Binary)\n\n~ 00100011 \n  ________\n   11011100  = 220 (In decimal)<\/code><\/pre>\n\n\n\n<p>Here,&nbsp;<code>~<\/code>&nbsp;is a bitwise operator. It inverts the value of each bit (<strong>0<\/strong>&nbsp;to&nbsp;<strong>1<\/strong>&nbsp;and&nbsp;<strong>1<\/strong>&nbsp;to&nbsp;<strong>0<\/strong>).<\/p>\n\n\n\n<p>The various bitwise operators present in Java are:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><th>Operator<\/th><th>Description<\/th><\/tr><tr><td><code>~<\/code><\/td><td>Bitwise Complement<\/td><\/tr><tr><td><code>&lt;&lt;<\/code><\/td><td>Left Shift<\/td><\/tr><tr><td><code>&gt;&gt;<\/code><\/td><td>Right Shift<\/td><\/tr><tr><td><code>&gt;&gt;&gt;<\/code><\/td><td>Unsigned Right Shift<\/td><\/tr><tr><td><code>&amp;<\/code><\/td><td>Bitwise AND<\/td><\/tr><tr><td><code>^<\/code><\/td><td>Bitwise exclusive OR<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>These operators are not generally used in Java. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Other operators<\/h2>\n\n\n\n<p>Besides these operators, there are other additional operators in Java.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"instanceof\">Java instanceof Operator<\/h3>\n\n\n\n<p>The&nbsp;<code>instanceof<\/code>&nbsp;operator checks whether an object is an instanceof a particular class. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Main {\n  public static void main(String&#91;] args) {\n\n    String str = \"Programiz\";\n    boolean result;\n\n    \/\/ checks if str is an instance of\n    \/\/ the String class\n    result = str instanceof String;\n    System.out.println(\"Is str an object of String? \" + result);\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><samp>Is str an object of String? true<\/samp><\/pre>\n\n\n\n<p>Here,\u00a0<var>str<\/var>\u00a0is an instance of the\u00a0<code>String<\/code>\u00a0class. Hence, the\u00a0<code>instanceof<\/code>\u00a0operator returns\u00a0<code>true<\/code>. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ternary\">Java Ternary Operator<\/h3>\n\n\n\n<p>The ternary operator (conditional operator) is shorthand for the&nbsp;<code>if-then-else<\/code>&nbsp;statement. For example,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>variable = Expression ? expression1 : expression2<\/code><\/pre>\n\n\n\n<p>Here&#8217;s how it works.<\/p>\n\n\n\n<ul><li>If the&nbsp;<code>Expression<\/code>&nbsp;is&nbsp;<code>true<\/code>,&nbsp;<code>expression1<\/code>&nbsp;is assigned to the&nbsp;<var>variable<\/var>.<\/li><li>If the&nbsp;<code>Expression<\/code>&nbsp;is&nbsp;<code>false<\/code>,&nbsp;<code>expression2<\/code>&nbsp;is assigned to the&nbsp;<var>variable<\/var>.<\/li><\/ul>\n\n\n\n<p>Let&#8217;s see an example of a ternary operator.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Java {\n  public static void main(String&#91;] args) {\n\n    int februaryDays = 29;\n    String result;\n\n    \/\/ ternary operator\n    result = (februaryDays == 28) ? \"Not a leap year\" : \"Leap year\";\n    System.out.println(result);\n  }\n}<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><samp>Leap year<\/samp><\/code><\/pre>\n\n\n\n<p>In the above example, we have used the ternary operator to check if the year is a leap year or not.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you&#8217;ll learn about different types of operators in Java, their syntax and how to use them with the help of examples. Operators are symbols that perform operations on variables and values. For example,&nbsp;+&nbsp;is an operator used for addition, while&nbsp;*&nbsp;is also an operator used for multiplication. Operators in Java can be classified into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[290],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/1152"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=1152"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/1152\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=1152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=1152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=1152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}