why setName in Thread class assigns to a character array?why not a String?
<p>When i was dealing with threads concept in Java, i have seen Thread.java source file. I noticed when <code>setName()</code> method assigns string to a character array called <code>"name[]"</code>. Java has a feature of String data type, then why they are using character array. </p>

<p>In source file it is initialised like,</p>

<pre><code>private char name[]; // why not "private String name;"
</code></pre>

<p>In <code>setName()</code> method,</p>

<pre><code>public final void setName(String name) {
    checkAccess();
    this.name = name.toCharArray();
    }
</code></pre>

<p>Please help me. Thanks in advance.</p>
