What is compareto () in java?
Answer / Rajkishor Singh
The compareTo() method in Java compares two objects based on their lexicographic order, which is based on the Unicode values of their characters. It returns 0 if they are equal, a negative number if the first object comes before the second, and a positive number otherwise.
| Is This Answer Correct ? | 0 Yes | 0 No |
What 5 doubled?
what do you mean by marker interface in java?
Explain cookies?
Why java uses the concept of the string literal?
Why main function is static?
What are different types of states exist for a thread?
What is a J2EE component? List out all the component?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What are format specifiers in java?
Why is Java a platform independent language?
IS method overriding is Duplication of Methods?
Explain the scope or life time of class variables or static variables?