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.
The signature of intern method is given below:
public int length()
length of characters