Strings >
String Length can be defined as a total number of Java Character present in a string object. For example, the string length of
"Note Book" is 9 including the space character.
Methods used to obtain information about an object are known as accessor methods. One such accessor method is
length() method, which returns the number of characters contained in the String object.
CODE class StringLengthTest OUTPUT String Length of Hyderabad is : 9 DESCRIPTION At THINGS TO TRY
|