{"id":116165,"date":"2020-03-25T13:52:04","date_gmt":"2020-03-25T13:52:04","guid":{"rendered":"https:\/\/www.softwaretestinghelp.com\/?page_id=116165"},"modified":"2025-04-01T08:29:07","modified_gmt":"2025-04-01T08:29:07","slug":"logical-operators-java","status":"publish","type":"page","link":"https:\/\/www.softwaretestinghelp.com\/logical-operators-java\/","title":{"rendered":"Java Logical Operators &#8211; OR, XOR, Not &#038; More"},"content":{"rendered":"<p>In this tutorial, we will Explore Various Logical Operators Supported in Java such as NOT, OR, XOR Java or Bitwise Exclusive Operator in Java With Examples:<\/p>\n<p>In one of our earlier tutorials on Java Operator, we saw the different types of operators available in Java. Here, we will explore the Logical Operators supported by Java in detail.<\/p>\n<p><em><strong>First, let\u2019s see what Logical Operators are?<\/strong><\/em><\/p>\n<p><strong>=&gt; <a href=\"https:\/\/www.softwaretestinghelp.com\/java\/\">Check Out The Complete FREE Java Course 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\/Logical-Operators.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-116196\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Logical-Operators.png\" alt=\"Logical Operators\" width=\"650\" height=\"366\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Logical-Operators.png 650w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Logical-Operators-300x169.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<h3>What Are Logical Operators?<\/h3>\n<p><strong>Java supports the following conditional operators that are also called as Logical Operators:<\/strong><\/p>\n\n<table id=\"tablepress-1125\" class=\"tablepress tablepress-id-1125\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\"><strong>Operator<\/strong><\/th><th class=\"column-2\"><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">&amp;&amp;<\/td><td class=\"column-2\">Conditional-AND<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">||<\/td><td class=\"column-2\">Conditional-OR<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">!<\/td><td class=\"column-2\">Logical NOT<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-1125 from cache -->\n<p><strong>Java also supports the following<\/strong> <strong>Bitwise Logical Operator<\/strong>:<\/p>\n\n<table id=\"tablepress-1126\" class=\"tablepress tablepress-id-1126\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">^<\/th><th class=\"column-2\">Bitwise exclusive OR<br \/>\nAlso known as XOR<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<\/tbody>\n<\/table>\n<!-- #tablepress-1126 from cache -->\n<p>These logical operations are performed on two Boolean expressions.<\/p>\n<p><strong>Let\u2019s see these operators in details :<\/strong><\/p>\n<ul>\n<li><strong>&amp;&amp;<\/strong>: This operator is called as <strong>Conditional-AND<\/strong>. Here, &amp;&amp; performs conditional AND on two boolean expressions.<\/li>\n<\/ul>\n<p><u><strong>For Example,<\/strong><\/u><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class LogicalOperatorsDemo1 {\r\n\tpublic static void main(String&#x5B;] args) {\r\n\t\tboolean x = true;\/\/boolean variable x is intialiized with value true\r\n\t\tboolean y = false;\/\/boolean variable y is intialiized with value false\r\n\t\tboolean z = (x &amp;amp;&amp;amp; y) ;\/\/conditional-AND on x and y\r\n\t\tSystem.out.println(&quot;x &amp;amp;&amp;amp; y = &quot; + z);\/\/print value of the result\r\n\t\t\/\/This gives an output x &amp;amp;&amp;amp; y = false\r\n\t}\r\n}\r\n\r\n<\/pre>\n<p><strong>This program prints the following output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Conditional_AND.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-116190\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Conditional_AND.png\" alt=\"Conditional_AND\" width=\"152\" height=\"24\" srcset=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Conditional_AND.png 152w, https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Conditional_AND-150x24.png 150w\" sizes=\"(max-width: 152px) 100vw, 152px\" \/><\/a><\/p>\n<p>Here, x and y are two boolean values.<\/p>\n<p><strong>&amp;&amp;<\/strong> performs <strong>Conditional-AND<\/strong> on x=true and y=false , it returns true&amp;&amp;false i.e. false<\/p>\n<ul>\n<li><strong>||:<\/strong> This operator is called as <strong>Conditional-OR<\/strong>. Here, || performs conditional OR on two boolean expressions.<\/li>\n<\/ul>\n<p><u><strong>For Example,<\/strong><\/u><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class LogicalOperatorsDemo2 {\r\n\tpublic static void main(String&#x5B;]args) {\r\n\t\tboolean x = true;\/\/boolean variable x is intialiized with value true\r\n\t\tboolean y = false;\/\/boolean variable y is intialiized with value false\t\r\n\t\tboolean z = (x || y) ;\t\/\/conditional-OR on x and y\r\n\t\tSystem.out.println(&quot;x || y = &quot; + z);\/\/print value of the result\r\n\t\t\/\/This gives an output x || y = true\r\n\t}\r\n}\r\n<\/pre>\n<p><strong>This program prints the following output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Conditional_OR.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-116191\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Conditional_OR.png\" alt=\"Conditional_OR\" width=\"149\" height=\"21\" \/><\/a><\/p>\n<p>Here, x and y are two <strong><a href=\"https:\/\/www.softwaretestinghelp.com\/java-boolean\/\">boolean values<\/a><\/strong>.<\/p>\n<p><strong>|| <\/strong>performs <strong>Conditional-OR<\/strong> on x=true and y=false , it returns true||false i.e. true<\/p>\n<ul>\n<li><strong>!<\/strong>: This is called a logical complement operator. This is performed on a single operand. This operator inverts the value of a boolean.<\/li>\n<\/ul>\n<p><u><strong>For Example,<\/strong><\/u><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class LogicalOperatorsDemo3 {\r\n    public static void main(String&#x5B;]args) {\r\n\tboolean x = true;\/\/boolean variable x is intialiized with value true\r\n\tboolean z = !x; \/\/\tinverting the value of x\r\n\tSystem.out.println(&quot;z = &quot; + z);\/\/print value of the result\r\n        \/\/This gives output as z = false\r\n    }\r\n}\r\n<\/pre>\n<p><strong>This program prints the following output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/LogicalComplement-operator.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-116192\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/LogicalComplement-operator.png\" alt=\"LogicalComplement operator\" width=\"102\" height=\"24\" \/><\/a><\/p>\n<p>In the above program, ! returns an inverted value of the boolean variable value x i.e.!(true) i.e. false.<\/p>\n<h3>Bitwise Exclusive OR &#8211; XOR Java<\/h3>\n<p><strong>Now let\u2019s see Java Bitwise Operator i.e. XOR Operator in detail:<\/strong><\/p>\n\n<table id=\"tablepress-1126-no-2\" class=\"tablepress tablepress-id-1126\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">^<\/th><th class=\"column-2\">Bitwise exclusive OR<br \/>\nAlso known as XOR<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<\/tbody>\n<\/table>\n<!-- #tablepress-1126-no-2 from cache -->\n<p>Bitwise exclusive OR or XOR ^ is binary operator performs a bit by bit exclusive OR operation.<\/p>\n<p><strong>It performs the operation as follows:<\/strong><\/p>\n<ul>\n<li>If both the bits are the same, then the XOR operator returns the result as <strong>&#8216;0&#8217;.<\/strong><\/li>\n<li>If both the bits are different, then the XOR operator returns the result as <strong>&#8216;1&#8217;.<\/strong><\/li>\n<\/ul>\n\n<table id=\"tablepress-1128\" class=\"tablepress tablepress-id-1128\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">x<\/th><th class=\"column-2\">y<\/th><th class=\"column-3\">x ^ y<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">true<\/td><td class=\"column-2\">false<\/td><td class=\"column-3\">true<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">true<\/td><td class=\"column-2\">true<\/td><td class=\"column-3\">false<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">false<\/td><td class=\"column-2\">true<\/td><td class=\"column-3\">true<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">false<\/td><td class=\"column-2\">false<\/td><td class=\"column-3\">false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-1128 from cache -->\n<p><strong>XOR operator follows an evaluation order from the left to right order.<\/strong><\/p>\n<p><strong>Let us have a look at the following Java sample that illustrated the use of Java xor Operators:<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class XorDemo {\r\n   public static void main(String&#x5B;] args) {\r\n      boolean a = true;\r\n      boolean b = false;\r\n      boolean result = a ^ b;\r\n      System.out.println(&quot;a ^ b: &quot;+ result); \/\/prints the result true\r\n\r\n      a = true;\r\n      b = true;\r\n      result = a ^ b;\r\n      System.out.println(&quot;a ^ b: &quot;+ result); \/\/prints the result false\r\n\r\n      a = false;\r\n      b = true;\r\n      result = a ^ b;\r\n      System.out.println(&quot;a ^ b: &quot;+ result); \/\/prints the result true\r\n\r\n      a = false;\r\n      b = false;\r\n      result = a ^ b;\r\n      System.out.println(&quot;a ^ b: &quot;+ result); \/\/prints the result false\r\n   }\r\n}\r\n<\/pre>\n<p><strong>This program prints the following output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Use-of-java-XOR-operators.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-116193\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/Use-of-java-XOR-operators.png\" alt=\"Use of java XOR operators\" width=\"165\" height=\"93\" \/><\/a><\/p>\n<p><strong>Let&#8217;s see how this XOR operation takes place for integer values with the following example:<\/strong><\/p>\n<p>To perform Java XOR operation on integer values like int 6 and int 10,<\/p>\n<p>XOR happens on binary values of 6 i.e. 0110 and 10 i.e. 1010.<\/p>\n<p><strong>So XOR on 6 and 10 as follows :<\/strong><\/p>\n<p><strong>0110<\/strong><br \/>\n<strong> ^<\/strong><br \/>\n<strong> 1010<\/strong><br \/>\n<strong>=======<\/strong><br \/>\n<strong> 1100<\/strong><\/p>\n<p>Result returned is the integer value of 1100 is 12<\/p>\n<p><strong>Given below is the sample Java program to perform XOR on two integers:<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic class XorDemo1 {\r\n  public static void main(String&#x5B;] args) {\r\n\tint x = 6;\/\/ Binary value of 6 is 0110\r\n\tint y = 10;\/\/ Binary value of 10 is\t1010\r\n\tint result = x^y;\/\/ xor operation on 0110^1010 which gives 1100\r\n        System.out.println(&quot;result: &quot;+result);\/\/integer value of 1100 is 12\r\n   }\r\n}\r\n\r\n<\/pre>\n<p><strong>This program prints the following output:<\/strong><\/p>\n<p><a href=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/xor-on-two-integers.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-116188\" src=\"https:\/\/www.softwaretestinghelp.com\/wp-content\/qa\/uploads\/2020\/01\/xor-on-two-integers.png\" alt=\"xor on two integers\" width=\"124\" height=\"23\" \/><\/a><\/p>\n<h3>Frequently Asked Questions And Answers<\/h3>\n<p><span style=\"color: #ff6600;\"><strong>Q #1) What is the XOR operation?<\/strong><\/span><\/p>\n<p><strong>Answer:<\/strong> Bitwise exclusive OR or XOR ^ is a binary operator that performs a bit by bit exclusive OR operation.<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #2) How is XOR calculated?<\/span><\/strong><\/p>\n<p><strong>Answer:<\/strong> Bitwise exclusive OR or XOR ^\u00a0 performs a bit by bit exclusive OR operation as follows:<\/p>\n<ul>\n<li>If both the bits are the same, then the XOR operator returns the result as <strong>&#8216;0&#8217;.<\/strong><\/li>\n<li>If both the bits are different, then the XOR operator returns the result as <strong>&#8216;1&#8217;. <\/strong><\/li>\n<\/ul>\n<p><strong><span style=\"color: #ff6600;\">Q #3) What is the difference between &amp;&amp; and &amp; in Java?<\/span><\/strong><\/p>\n<p><strong>Answer: &amp;&amp;:<\/strong> This is Conditional-AND performed on two boolean operands.<\/p>\n<p>Whereas, <strong>&amp;<\/strong> is a bitwise AND operator which is performed on bit operands.<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #4) What is OR operator in Java?<\/span><\/strong><\/p>\n<p><strong>Answer: <\/strong>Java supports <strong>Conditional-OR<\/strong> i.e.<strong> ||<\/strong> Here, ||performs conditional OR on two boolean expressions.<\/p>\n<p><u><strong>For Example,<\/strong><\/u><\/p>\n<p>boolean x = true;<br \/>\nboolean y = false;<br \/>\n(x || y ) returns true<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #5) What is the symbol of OR in Java?<\/span><\/strong><\/p>\n<p><strong>Answer: <\/strong>Java supports Conditional-OR having symbol ||. This is different than the exclusive or bitwise operation and it has symbol ^.<\/p>\n<p><strong><span style=\"color: #ff6600;\">Q #6) What is the use of Bitwise Operators in Java?<\/span><\/strong><\/p>\n<p><strong>Answer: <\/strong>Bitwise operators in Java are used for manipulating bits of a number. They can be used with data types like char, short, int, etc.<\/p>\n<h3>Conclusion<\/h3>\n<p>In this tutorial, we have explored the following logical operators supported in Java in detail with the help of sample programs.<\/p>\n<ul>\n<li><strong>&amp;&amp; : Conditional-AND<\/strong><\/li>\n<li><strong>|| : Conditional-OR<\/strong><\/li>\n<li><strong>! : Logical NOT<\/strong><\/li>\n<\/ul>\n<p><strong>We also discussed the following operator:<\/strong><\/p>\n<ul>\n<li><strong>^ : Bitwise exclusive or XOR<\/strong><\/li>\n<\/ul>\n<p><strong>=&gt; <a href=\"https:\/\/www.softwaretestinghelp.com\/java\/\">Read Through The Java Beginners Training Series Here<\/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=\"116165\">\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 tutorial, we will Explore Various Logical Operators Supported in Java such as NOT, OR, XOR Java or Bitwise Exclusive Operator in Java With Examples: In one of our earlier tutorials on Java Operator, we saw the different types of operators available in Java. Here, we will explore the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Java Logical Operators &#8211; OR, XOR, Not &#038; More\" class=\"read-more button\" href=\"https:\/\/www.softwaretestinghelp.com\/logical-operators-java\/#more-116165\" aria-label=\"Read more about Java Logical Operators &#8211; OR, XOR, Not &#038; More\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":116196,"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-116165","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\/116165","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=116165"}],"version-history":[{"count":0,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/pages\/116165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media\/116196"}],"wp:attachment":[{"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/media?parent=116165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/categories?post=116165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwaretestinghelp.com\/wp-json\/wp\/v2\/tags?post=116165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}