title: ObjectOutputStream methods: writeBytes(String str) vs writeUTF(String s);
body: <p>What's the main difference between the two? </p>
  
  <p>Still both of them are for writing Strings. </p>
  
  <pre><code>public void writeUTF(String str)
                throws IOException
  
  Primitive data write of this String in modified UTF-8 format.
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>public void writeBytes(String str)
                  throws IOException
  
  Writes a String as a sequence of bytes.
  </code></pre>
  
  <p>When should I use one rather than the other?</p>