title: Java Why is the length of the string twice 36 while it contains just 18 characters?
body: <p>The following string <code>st</code> contains just 18 characters but when I print its length it shows 36 its twice.</p>
  
  <pre><code>String st = "";
  System.out.println(st.length());
  </code></pre>
  
  <p><strong>Note:</strong> The string contains symbols which I am going to use in my chat application, the length maybe vary due to 16bit and 8bit characters but I am blurry about it.</p>