The compareTo() function is used to ________________
The compareTo() function is used to ________________ Correct Answer Compare string object to another string object
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.
মোঃ আরিফুল ইসলাম
Feb 20, 2025