The length() method is a built-in function in Java that returns the number of characters in a string.
This method extracts a portion of a string based on the specified beginning and ending indexes.
equals(String other): This method compares two strings and returns true if they are equal, and false otherwise.
charAt(int index): This method returns the character at the specified index position in a string.