What is the value returned by function compareTo() if the invoking string is greater than the string compared?
What is the value returned by function compareTo() if the invoking string is greater than the string compared? Correct Answer value greater than zero
if (s1 == s2) then 0, if(s1 > s2) > 0, if (s1 < s2) then < 0.
মোঃ আরিফুল ইসলাম
Feb 20, 2025