title: What's the meaning of char zero (0) in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2523284/java-string-replace-and-the-nul-null-ascii-0-character">Java string replace and the NUL (NULL, ASCII 0) character?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm doing some String algorithms in Java, and i noticed that wherever i include a char with the value of 0 (zero) it marks the end of the String. Like this:</p>
  
  <pre><code>String aString = "I'm a String";
  char[] aStringArray = aString.toCharArray();
  aStringArray[1] = 0;
  System.out.println(new String(aStringArray)); //It outputs "I"
  </code></pre>
  
  <p>What's the reason/cause of this behaviour?</p>