Computer Science, asked by khatwanisheetal6673, 7 months ago

what is the data type returned by the library functions??
a.) compare To ()
b.)equals ()
please answer this question with explanation..​

Answers

Answered by vestige57
6

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

Answered by rupsa153
1

Answer:

a) integer value

b) boolean value

Similar questions