title: Concatenation of Boolean and Int
body: <p>Why can't i do this?
  I understand that concatenation of a int and a string or with boolean,(true or false) is possible, but not an addition of boolean with an int.</p>
  
  <p>What exactly happens when u add a int with a boolean? Why does it show an error?</p>
  
  <pre><code>System.out.println(a.length() + a.startsWith("a"));
  </code></pre>
  
  <p>i also understand that the work around for this code is</p>
  
  <pre><code>System.out.println(""+a.length() + a.startsWith("a"));
  </code></pre>
  
  <p>which uses concatenation.</p>