what is the data type returned by the library functions??
a.) compare To ()
b.)equals ()
please answer this question with explanation..
Answers
Answered by
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
1
Answer:
a) integer value
b) boolean value
Similar questions