how does 'length' work to return the length of a String type array object in Java? : <p>we have length()-  <strong>a method</strong> that returns the length of a String object,</p>

<p>for example:</p>

<pre><code> String s, sarr[] = {"a","b"};  
 System.out.println(s.length());  
 System.out.println(sarr.length);
</code></pre>

<p>in Java. But what does happen, in background, in case of String type array object that we have to use <strong>length</strong> , probably a parameter, that returns the length of that said array object?</p>
