what is the data type returned by the library functions??
a.) compare To ()
b.)equals ()
please answer this question with explanation..
Share
what is the data type returned by the library functions??
a.) compare To ()
b.)equals ()
please answer this question with explanation..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
equals: Compares this string to the specified object. compareTo compares two strings by their characters (at same index) and returns an integer (positive or negative) accordingly. ... equals() checks if two objects are the same or not and returns a boolean. compareTo() (from interface Comparable) returns an integer.
please mark the answer as brainliest