Strings are a fundamental data type in Java and are widely used in applications for storing and manipulating text. Strings in Java are objects backed by character arrays, making them immutable. Once a string is created, its contents cannot be changed. To “modify” a string, a new string object must be created. https://data-flair.training/blogs/java-string-compareto-method/