Length() is a method that is used to determine the length of the string in the class, Whereas length is just used for array to find the length of the array.
length is a variable wich is used in arrays for find out
the length.lenght() is function defined in Object class as
well as String class for find out the length of String
Length() is a method used to find the length of the String where as length is a variable used to find length of the array.
array.length -> Returns the size of the array.
Str.length() -> Returns the size of the String.