InterviewSolution
Saved Bookmarks
| 1. |
The compareTo() function is used to ________________(a) Compare strings value to string object(b) Compare string value to string value(c) Compare string object to another string object(d) Compare string object to another string value |
|
Answer» Right choice is (c) Compare string object to another string object For explanation: The source and target must be objects of the string class. The compare is always case sensitive. To compare two string objects without case sensitivity then we can use compareToIgnoreCase() function. |
|