String Constructor_networking
<p>One of the constructor defined in String class is <code>String(char chars[],int startindex,int *numChars*)</code>, but i came across this <code>String(p.getData(),0,p.getLength())</code>.</p>

<p><em>Note:p has reference of DatagramPacket Object.</em></p>

<p><strong>Since getData() returns byte array of data contained in the datagram,it should give an error.But to my surprise it does not give error.</strong></p>

<p>Why is this so? Please explain.</p>
