What is compareto?
Answer / Ankush
In Java, compareTo() is a method defined in the Comparable interface. It compares two objects based on their inherent ordering. For example, in String class, it compares strings lexicographically.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between interface & abstract class?
List the interfaces which extends collection interface?
What is difference between overloading and overriding?
how to open and edit XML file in Weblogic???
Is node a data type in java?
Explain about method local inner classes or local inner classes in java?
Why we override equals() method?
Difference between static synchronization vs. Instance synchronization?
Which all r Final classes in java except string?
If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ?
7 Answers Accenture, College School Exams Tests, iFlex, NIIT,
What is difference between array and arraylist in java?
What is the difference between a scrollbar and a scrollpane?