Differencet between length and length()
Hi,When we are using String() : To fing its length we are usingstringObj.length() and when we are using arrrays of String : to find its length we are usingstringArray.lengthWhat is the difference between length() and lengthbye,suresh
The String class's length() method returns the length of the string represented by an object of the class. Every array, regardless of type (i.e., object or primitive), contains a length attribute that represents the number of elements in the array.