Java String length


The java string length() method length of the string. It returns count of total number of characters. The length of java string is same as the unicode code units of the string.


Signature

The signature of intern method is given below:

public int length()


Specified by

CharSequence interface


Returns

length of characters


Java String equals() method example

Flash soon



Copyright 2017 Design& Development