ICSE Class 10 Computer Applications Question 3 of 46

String Handling — Question 3

Back to all questions
3
Question

Question 2(ii)

Mention the purpose and syntax of length() method.

Answer

The length() method returns the length of a string. The length is equal to the number of characters present in the string including the white spaces.
Syntax:
stringObject.length()