Java Integer addition with String
<p>With below code sample why the first addition (1/2+1/2) prints 0 but the second addition prints 00.   </p>

<pre><code>System.out.println(1/2+1/2+"=1/2+1/2");
System.out.println("1/2+1/2="+1/2+1/2); 
</code></pre>

<p>Output:</p>

<p>0=1/2+1/2</p>

<p>1/2+1/2=00</p>