title: How tab works in Java?
body: <p>I came across a weired situation while using tabs. Mostly tabs are made up of 8 or 4 spaces. But lets say right now its 8</p>
  
  <p>For example</p>
  
  <pre><code>"abc"+"\t"+"bcd"      -&gt; abc        bcd
  "abcderft"+"\t"+"bcd" -&gt; abcderft   bcd
  </code></pre>
  
  <p>Why am getting differences in <code>tab distance</code> between two strings ?</p>
  
  <p>Checked this post too </p>
  
  <pre><code>https://stackoverflow.com/questions/6000810/printing-with-t-tabs-does-not-result-in-aligned-columns
  </code></pre>
  
  <p>Didnt clear much.</p>
  
  <p>Even if tab is equivalent to 8 spaces, then why its considering the string count ? I mean if my string length is 3 then next string am getting after only 5 spaces, and if string length is 8 then next string is coming after 8 characters.</p>
  
  <p>Does tabs includes the string length too post which its being added ?</p>