Computer Science, asked by Ashick60, 7 months ago

Write one difference between length and length () functions ​

Answers

Answered by AGRAWALGRACY77
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 Anonymous
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