{"id":71866,"date":"2022-06-14T15:13:54","date_gmt":"2022-06-14T09:43:54","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/"},"modified":"2024-09-12T14:59:49","modified_gmt":"2024-09-12T09:29:49","slug":"java-operators","status":"publish","type":"post","link":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/","title":{"rendered":"What are Java Operators? Types, Examples and more"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"what-are-java-operators\"><strong>What are Java Operators?<\/strong><\/h2>\n\n\n\n<p>Java operators are symbols that are used to perform operations on variables and manipulate the values of the operands. Each operator performs specific operations. Let us consider an expression 5 + 1 = 6; here, 5 and 1 are <strong>operands,<\/strong> and the symbol + (plus) is called the <strong>operator<\/strong>. We will also learn about operator precedence and operator associativity.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"types-of-java-operators\"><strong>Types of Java Operators:<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Unary Operators<\/li>\n\n\n\n<li>Arithmetic Operators<\/li>\n\n\n\n<li>Assignment Operators<\/li>\n\n\n\n<li>Logical Operators<\/li>\n\n\n\n<li>Shift Operators<\/li>\n\n\n\n<li>Bitwise Operators<\/li>\n\n\n\n<li>Ternary Operators<\/li>\n\n\n\n<li>Relational Operators<\/li>\n<\/ol>\n\n\n\n<p>Let us see each operator one by one in detail.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Unary Operator: <\/strong>Unary operator requires only a single operand; this operator is used to increment or decrement the value, negating an expression or inverting a boolean value.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><strong>++ (Increment)&nbsp;<\/strong><\/td><td>This operator is used to increment the value by 1. There are two types of increment, i.e., post-increment (a++) and pre-increment (++a)<\/td><\/tr><tr><td><strong>-- (Decrement).<\/strong><\/td><td>This operator is used to decrement the value by 1. There are two types of decrement, i.e., post decrement (a--) and pre decrement (--a)<\/td><\/tr><tr><td><strong>! (Invert)<\/strong><\/td><td>This operator is used to invert a boolean value (!a).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {\npublic static void main ( String&#91;] args ) {  \nint a = 10;  \nboolean b = True;\nSystem.out.println ( a++ );\nSystem.out.println ( ++a );\nSystem.out.println ( a-- );  \nSystem.out.println ( --a );\nSystem.out.println ( !b );\n}\n}<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>10<\/p>\n\n\n\n<p>12<\/p>\n\n\n\n<p>12<\/p>\n\n\n\n<p>10<\/p>\n\n\n\n<p>False<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>&nbsp;<\/strong><strong>Arithmetic Operator: <\/strong>Arithmetic operators are used to performing addition, subtraction, multiplication, division, and modulus. It acts as a mathematical operations.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><strong>+ ( Addition )<\/strong><\/td><td>This operator is used to add the value of the operands.<\/td><\/tr><tr><td><strong>- ( Subtraction )<\/strong><\/td><td>This operator is used to subtract the right-hand operator with the left hand operator.<\/td><\/tr><tr><td><strong>* ( Multiplication )<\/strong><\/td><td>This operator is used to multiply the value of the operands.<\/td><\/tr><tr><td><strong>\/ ( Division )<\/strong><\/td><td>This operator is used to divide the left hand operator with right hand operator.<\/td><\/tr><tr><td><strong>% ( Modulus )<\/strong><\/td><td>This operator is used to divide the left hand operator with right hand operator and returns remainder.&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {  \npublic static void main ( String&#91;] args ) {  \nint a = 10;  \nint b = 20;  \nSystem.out.println ( a + b );  \nSystem.out.println ( a \u2013 b );  \nSystem.out.println ( a * b );  \nSystem.out.println ( a \/ b );  \nSystem.out.println ( a % b );\n}\n}<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>30<\/p>\n\n\n\n<p>-10<\/p>\n\n\n\n<p>200<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>10<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Assignment Operator :&nbsp; <\/strong>Assignment operator are used to assign new value to a variable. The left side operand of the assignment operator is called variable and the right side operand of the assignment operator is called value.&nbsp;<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><strong>=<\/strong><\/td><td>This operator is used to assign the value on the right to the operand on the left.<\/td><\/tr><tr><td><strong>+=<\/strong><\/td><td>This operator is used to add right operand to the left operand and assigns the result to the left operand.<\/td><\/tr><tr><td><strong>-=<\/strong><\/td><td>This operator subtracts right operand from the left operand and assigns the result to the left operand.<\/td><\/tr><tr><td><strong>*=<\/strong><\/td><td>This operator multiplies right operand with the left operand and assigns the result to the left operand.<\/td><\/tr><tr><td><strong>\/=<\/strong><\/td><td>This operator divides left operand with the right operand and assigns the result to the left operand.<\/td><\/tr><tr><td>^=<\/td><td>This operator performs exponential calculation on operators and assigns value to the left operand<\/td><\/tr><tr><td><strong>%=<\/strong><\/td><td>This operator is used to divide the left-hand operator with right hand operator and assigns the result to left operand.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>(!b); \/\/ returns false<\/p>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {\npublic static void main ( String&#91;] args ) {\nint a = 10;\nint b = 20;\nint c;\nSystem.out.println ( c = a ); \nSystem.out.println ( b += a );\nSystem.out.println ( b -= a);\nSystem.out.println ( b *= a );\nSystem.out.println ( b \/= a );\nSystem.out.println ( b ^= a );\nSystem.out.println ( b %= a );\n}\n}<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p>10<\/p>\n\n\n\n<p>30<\/p>\n\n\n\n<p>10<\/p>\n\n\n\n<p>200<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<p>0<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Logical Operator: <\/strong>Logical operators are used to combining two or more conditions or complement the evaluation of the original condition under consideration.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>&amp;&amp; (Logical AND)<\/td><td>This operator returns True if both the operands are true, otherwise, it returns False.<\/td><\/tr><tr><td>|| (Logical OR)<\/td><td>This operator returns True if either the operands are true, otherwise it returns False.<\/td><\/tr><tr><td>! (Logical AND)<\/td><td>This operator returns True if an operand is False. It reverses the logical state of an operand.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example:&nbsp;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {\npublic static void main ( String args&#91;] ) {\n             int a = 5;\n             System.out.println ( a&lt;5  &amp;&amp;  a&lt;20 );\n             System.out.println ( a&lt;5 || a&lt;20 );\n             System.out.println ( ! ( a&lt;5  &amp;&amp;  a&lt;20 ));\n}  \n}<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<p><strong><\/strong>false<\/p>\n\n\n\n<p>true<\/p>\n\n\n\n<p>true<\/p>\n\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li><strong>Shift Operator: <\/strong>The shift operator is used to shift the bits of a number left or right by multiplying or dividing the numbers.&nbsp;<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><strong>&lt;&lt; <\/strong><strong>(Left Shift)<\/strong><\/td><td>This operator left shifts the bits of the first operand; the second operand decides the number of places to shift.<\/td><\/tr><tr><td><strong>&gt;&gt; <\/strong><strong>(Right Shift)<\/strong><\/td><td>This operator right shifts the bits of the first operand; the second operand decides the number of places to shift.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {\n      \tpublic static void main ( String args&#91;] ) {\n            \tint a = 58; \n        \tSystem.out.println ( a&lt;&lt;2 ); \n        \tSystem.out.println ( a&gt;&gt;2 ); \n\t}\n\t}<\/code><\/pre>\n\n\n\n<p><strong>Output :<\/strong><\/p>\n\n\n\n<p>232<\/p>\n\n\n\n<p>14<\/p>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li><strong>Bitwise Operator: <\/strong>The bitwise operator operates on bit string, binary number, or bit array. It is fast and simple and directly supported by the processor. The bitwise operation is also known as bit-level programming.&nbsp;<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><strong>&amp; (Bitwise AND)<\/strong><\/td><td>This operator takes two numbers as operands and does AND on every&nbsp; bit of two numbers.&nbsp;<\/td><\/tr><tr><td><strong>| (Bitwise OR)<\/strong><\/td><td>This operator takes two numbers as operands and does OR on every&nbsp; bit of two numbers.<\/td><\/tr><tr><td><strong>^ (Bitwise XOR)<\/strong><\/td><td>This operator takes two numbers as operands and does XOR on every&nbsp; bit of two numbers.<\/td><\/tr><tr><td><strong>~ (Bitwise NOT)<\/strong><\/td><td>This operator takes one number as an operand and does invert all bits of that number.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {\npublic static void main( String&#91;] args ) {\nint a = 58; \n            int b = 13; \n        \tSystem.out.println ( a&amp;b );  \n       \tSystem.out.println ( a|b );  \n        \tSystem.out.println ( a^b );  \n        \tSystem.out.println ( ~a );  \n\t}\n\t}<\/code><\/pre>\n\n\n\n<p><strong><\/strong><strong>Output :<\/strong><\/p>\n\n\n\n<p><strong><\/strong>8<\/p>\n\n\n\n<p>63<\/p>\n\n\n\n<p>55<\/p>\n\n\n\n<p>-59<\/p>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li><strong>Ternary Operator : <\/strong>Ternary operator is an conditional operator, it reduces the line of code while performing the conditional or comparisons. It is the replacement of if-else or nested if-else statements. It is also referred to as inline if, conditional operator, or ternary if.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p><strong>Syntax : <\/strong>( Condition ) ? ( Statement1 ) : ( Statement2 );<\/p>\n\n\n\n<p>Here <strong>Condition<\/strong> is the expression to be evaluated which will return the boolean value. If the Condition result is True then <strong>Statement1 <\/strong>will be executed. If the Condition result is false then <strong>Statement2 <\/strong>will be executed.&nbsp;<\/p>\n\n\n\n<p><strong>Example :&nbsp;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {  \npublic static void main ( String args&#91;] ) {  \nint a = 4;  \nint b = 9;  \nint min = ( a&lt;b ) ? a : b;  \nSystem.out.println ( min );  \n}\n}  <\/code><\/pre>\n\n\n\n<p><strong>Output :&nbsp;<\/strong><\/p>\n\n\n\n<p>4<\/p>\n\n\n\n<ol start=\"8\" class=\"wp-block-list\">\n<li><strong>Relational Operator: <\/strong>Relational operator compares two numbers and returns a boolean value. This operator is used to define a relation or test between two operands.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><strong>&lt; (Less than)<\/strong><\/td><td>This operator returns True, if the value of the left operand is less than the value of the right operand, else it returns False.<\/td><\/tr><tr><td><strong>&gt; (Greater than)<\/strong><\/td><td>This operator returns True, if the value of the left operand is greater than the value of the right operand, else it returns False.<\/td><\/tr><tr><td><strong>&lt;= (Less than or equal to)<\/strong><\/td><td>This operator returns True, if the value of the left operand is less than or equal to the value of the right operand, else it returns False.<\/td><\/tr><tr><td><strong>&gt;= (Greater than or equal to)<\/strong><\/td><td>This operator returns True, if the value of the left operand is greater than or equal to the value of the right operand, else it returns False.<\/td><\/tr><tr><td><strong>== (Equal to)<\/strong><\/td><td>This operator returns True, if two operands are equal, else it returns False.<\/td><\/tr><tr><td><strong>!= (Not equal to)<\/strong><\/td><td>This operator returns True, if two operands are not equal, else it returns False.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example :&nbsp;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class GreatLearning {\n      \tpublic static void main ( String&#91;] args ) {\n            \tint  a = 10;\n            \tint  b = 20;\n            \tSystem.out.println ( a &lt; b ); \n            \tSystem.out.println(  a &gt; b ); \n            \tSystem.out.println ( a &lt;= b ); \n            \tSystem.out.println (a &gt;= b ); \n             System.out.println ( a == b ); \n             System.out.println ( a != b ); \n             }\n             }<\/code><\/pre>\n\n\n\n<p><strong>Output :&nbsp;<\/strong><\/p>\n\n\n\n<p>true<\/p>\n\n\n\n<p>false<\/p>\n\n\n\n<p>true<\/p>\n\n\n\n<p>false<\/p>\n\n\n\n<p>false<\/p>\n\n\n\n<p>true<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"java-operator-precedence-and-associativity\"><strong>Java Operator Precedence <\/strong><strong>and Associativity<\/strong><\/h2>\n\n\n\n<p><strong>Operator Precedence : <\/strong>Operator precedence determines which operator is performed first in an expression if there is more than one operators with different precedence.&nbsp;<\/p>\n\n\n\n<p><strong>Operator <\/strong><strong>Associativity<\/strong><strong> <\/strong>: Operator associativity is used when an expression have two operators having same precedence.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Operator<\/strong><\/td><td><strong>Precedence<\/strong><\/td><td><strong>Associativity<\/strong><\/td><\/tr><tr><td>Postfix<\/td><td>expr<em>++&nbsp; <\/em>expr<em>--<\/em><\/td><td>left to right<\/td><\/tr><tr><td>Unary<\/td><td>++<em>expr<\/em>&nbsp;--<em>expr<\/em>&nbsp;+<em>expr<\/em>&nbsp;-<em>expr<\/em>&nbsp;~ !<\/td><td>right to left<\/td><\/tr><tr><td>Multiplicative<\/td><td>* \/ %<\/td><td>left to right<\/td><\/tr><tr><td>Additive<\/td><td>+ -<\/td><td>left to right<\/td><\/tr><tr><td>Shift<\/td><td>&lt;&lt; &gt;&gt; &gt;&gt;&gt;<\/td><td>left to right<\/td><\/tr><tr><td>Relational<\/td><td>&lt; &gt; &lt;= &gt;= instanceof<\/td><td>left to right<\/td><\/tr><tr><td>Equality<\/td><td>== !=<\/td><td>left to right<\/td><\/tr><tr><td>bitwise AND<\/td><td>&amp;<\/td><td>left to right<\/td><\/tr><tr><td>bitwise exclusive OR<\/td><td>^<\/td><td>left to right<\/td><\/tr><tr><td>bitwise inclusive OR<\/td><td>|<\/td><td>left to right<\/td><\/tr><tr><td>logical AND<\/td><td>&amp;&amp;<\/td><td>left to right<\/td><\/tr><tr><td>logical OR<\/td><td>||<\/td><td>left to right<\/td><\/tr><tr><td>Ternary<\/td><td>? :<\/td><td>right to left<\/td><\/tr><tr><td>Assignment<\/td><td>= += -= *= \/= %= &amp;= ^= |= &lt;&lt;= &gt;&gt;= &gt;&gt;&gt;=<\/td><td>right to left<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Overall, operators are an important part of Java and are necessary for performing various operations on data. There are many different types of operators available in Java, each with its own specific purpose. While some operators are used more frequently than others, all of them can be useful in the right situation. With a little practice, anyone can become proficient in using Java operators.<\/p>\n\n\n\n<p>Engaging in the study of Java programming suggests a keen interest in the realm of software development. For those embarking upon this journey with aspirations towards a career in this field, it is recommended to explore the following pages in order to acquire a comprehensive understanding of the development career path:<\/p>\n\n\n\n<p>To test the understanding more better, take <a href=\"https:\/\/www.mygreatlearning.com\/blog\/java-quiz\/\">Java Quiz<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table class=\"has-cyan-bluish-gray-background-color has-background\"><tbody><tr><td><a href=\"https:\/\/www.mygreatlearning.com\/software-engineering\/courses\/certificates\" target=\"_blank\" rel=\"noreferrer noopener\">Software engineering courses certificates<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.mygreatlearning.com\/software-engineering\/courses\/placements\" target=\"_blank\" rel=\"noreferrer noopener\">Software engineering courses placements<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.mygreatlearning.com\/software-engineering\/courses\/syllabus\" target=\"_blank\" rel=\"noreferrer noopener\">Software engineering courses syllabus<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.mygreatlearning.com\/software-engineering\/courses\/fees\" target=\"_blank\" rel=\"noreferrer noopener\">Software engineering courses fees<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/www.mygreatlearning.com\/software-engineering\/courses\/eligibility\" target=\"_blank\" rel=\"noreferrer noopener\">Software engineering courses eligibility<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>What are Java Operators? Java operators are symbols that are used to perform operations on variables and manipulate the values of the operands. Each operator performs specific operations. Let us consider an expression 5 + 1 = 6; here, 5 and 1 are operands, and the symbol + (plus) is called the operator. We will [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":71897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25860],"tags":[36826],"content_type":[],"class_list":["post-71866","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-java"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>What are Java Operators? Types, Examples and more<\/title>\n<meta name=\"description\" content=\"This blog post covers the various Java operators and their usage. It covers the basic arithmetic operators, logical operators, etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are Java Operators? Types, Examples and more\" \/>\n<meta property=\"og:description\" content=\"This blog post covers the various Java operators and their usage. It covers the basic arithmetic operators, logical operators, etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-14T09:43:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-12T09:29:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1732\" \/>\n\t<meta property=\"og:image:height\" content=\"1732\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Great Learning Editorial Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Great_Learning\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Great Learning Editorial Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"What are Java Operators? Types, Examples and more\",\"datePublished\":\"2022-06-14T09:43:54+00:00\",\"dateModified\":\"2024-09-12T09:29:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/\"},\"wordCount\":1300,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/iStock-1214321254.jpg\",\"keywords\":[\"java\"],\"articleSection\":[\"IT\\\/Software Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/\",\"name\":\"What are Java Operators? Types, Examples and more\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/iStock-1214321254.jpg\",\"datePublished\":\"2022-06-14T09:43:54+00:00\",\"dateModified\":\"2024-09-12T09:29:49+00:00\",\"description\":\"This blog post covers the various Java operators and their usage. It covers the basic arithmetic operators, logical operators, etc.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/iStock-1214321254.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/iStock-1214321254.jpg\",\"width\":1732,\"height\":1732,\"caption\":\"designer team working together in web industry, responsive web design concept\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/java-operators\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IT\\\/Software Development\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/software\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What are Java Operators? Types, Examples and more\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What are Java Operators? Types, Examples and more","description":"This blog post covers the various Java operators and their usage. It covers the basic arithmetic operators, logical operators, etc.","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:\/\/www.mygreatlearning.com\/blog\/java-operators\/","og_locale":"en_US","og_type":"article","og_title":"What are Java Operators? Types, Examples and more","og_description":"This blog post covers the various Java operators and their usage. It covers the basic arithmetic operators, logical operators, etc.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","article_published_time":"2022-06-14T09:43:54+00:00","article_modified_time":"2024-09-12T09:29:49+00:00","og_image":[{"width":1732,"height":1732,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg","type":"image\/jpeg"}],"author":"Great Learning Editorial Team","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Great_Learning","twitter_site":"@Great_Learning","twitter_misc":{"Written by":"Great Learning Editorial Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"What are Java Operators? Types, Examples and more","datePublished":"2022-06-14T09:43:54+00:00","dateModified":"2024-09-12T09:29:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/"},"wordCount":1300,"commentCount":0,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg","keywords":["java"],"articleSection":["IT\/Software Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/","url":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/","name":"What are Java Operators? Types, Examples and more","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg","datePublished":"2022-06-14T09:43:54+00:00","dateModified":"2024-09-12T09:29:49+00:00","description":"This blog post covers the various Java operators and their usage. It covers the basic arithmetic operators, logical operators, etc.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/java-operators\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg","width":1732,"height":1732,"caption":"designer team working together in web industry, responsive web design concept"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/java-operators\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"IT\/Software Development","item":"https:\/\/www.mygreatlearning.com\/blog\/software\/"},{"@type":"ListItem","position":3,"name":"What are Java Operators? Types, Examples and more"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg",1732,1732,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-150x150.jpg",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-300x300.jpg",300,300,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-768x768.jpg",768,768,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-1024x1024.jpg",1024,1024,true],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-1536x1536.jpg",1536,1536,true],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254.jpg",1732,1732,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-640x853.jpg",640,853,true],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-96x96.jpg",96,96,true],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/iStock-1214321254-150x150.jpg",150,150,true]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"What are Java Operators? Java operators are symbols that are used to perform operations on variables and manipulate the values of the operands. Each operator performs specific operations. Let us consider an expression 5 + 1 = 6; here, 5 and 1 are operands, and the symbol + (plus) is called the operator. We will&hellip;","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/71866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=71866"}],"version-history":[{"count":23,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/71866\/revisions"}],"predecessor-version":[{"id":110569,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/71866\/revisions\/110569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/71897"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=71866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=71866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=71866"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/content_type?post=71866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}