Write one difference between length and length () functions
Answers
Answered by
1
Explanation:
length() : length() method is a final variable which is applicable for string objects. length() method returns the number of characters presents in the string. The length variable is applicable to array but not for string objects whereas the length() method is applicable for string objects but not for arrays.
Answered by
3
Answer:
The length() method is a static method of String class. The length() returns the length of a string object i.e. the number of characters stored in an object.
Similar questions