title: Can (a==1 && a==2 && a==3) evaluate to true in Java?
body: <p><a href="https://stackoverflow.com/q/48270127/476716">We know it can in JavaScript</a>.</p>
  
  <p>But is it possible to print "Success" message on the condition given below in Java?</p>
  
  <pre><code>if (a==1 &amp;&amp; a==2 &amp;&amp; a==3) {
      System.out.println("Success");
  }
  </code></pre>
  
  <p>Someone suggested:</p>
  
  <pre><code>int _a = 1;
  int a  = 2;
  int a_ = 3;
  if (_a == 1 &amp;&amp; a == 2 &amp;&amp; a_ == 3) {
      System.out.println("Success");
  }
  </code></pre>
  
  <p>But by doing this we are changing the actual variable. Is there any other way?</p>