title: Double byte character in Java
body: <p>Below code will print the length of byte store to below String which contain double byte Japanese character. Per my understanding, output of this program should be 2, however it is coming as 3. Why it this the case?</p>
  
  <pre><code>String j = "大";     
  System.out.println(j.getBytes().length);
  </code></pre>
  
  <p>If this will be always the case, then should I assume below:</p>
  
  <p>1, for single byte character, output of program will be always 1 </p>
  
  <p>2, for double byte character, output of program will be always 3 </p>