What does the string method compareto () do?
Answer / Sundaram Rathour
The compareTo() method in Java compares two strings lexicographically (in dictionary order). It returns 0 if both strings are equal, a negative number if the current string is less than the other, and a positive number if it's greater.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the purpose of garbage collection in java?
What is anti pattern in java?
what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
Write a code to show a static variable?
Is array primitive data type in java?
different between exception and error? explaim check and uncheck exception
How do you identify if jvm is 32-bit or 64-bit from java program?
How can you sort dates?
What is exception in java?
What are Advatages of Overloading and Overridding.
Explain jdk, jre and jvm?
What is character in data type?