Different behavior between String.value0f and Character.toString in Java : <p>In the following example, this program snippet does not compile, but if we replace the method <code>Character.toString(char)</code> by <code>String.valueOf(char)</code>, everything is fine. What is the issue why Character.toString here ? In the documentation, these methods seem to have the same behavior. Thanks for explanation.</p>

<pre><code> public static void main (String args[]) {

 String source = "19/03/2016 16:34";

 String result = Character.toString(source.substring(1,3));
 System.out.print(result);

}
</code></pre>
