Number Of Page View:100,000+/Months
LOGIN |New User


If aaaa is an array then why aaaa.length why not aaaa.length()?
In Java API, we have an Array class which has a variable named "length" to count the length of the array, hence we say, aaaa.length to count the length of the array.

In the String class, we have a method named length(), which returns the length of the string.