Syntax int len = s1.length(); Parameters This function contains single parameter. Return Value This function returns the integer value in terms of bytes.