What is comparable interface?
Answer / Neeraj Mishra
The Comparable interface in Java defines a total order between the objects of a class that implements it. It contains one abstract method called compareTo(Object o) which returns a negative integer, zero or positive integer depending on whether the object implementing this method is less than, equal to or greater than the specified object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is pointer a variable?
What's the difference between a hashtable and a hashmap?
Which sorting algorithm is best for large data?
Can a stack be described as a pointer? Explain.
What is a priority queue?
How to sequentially represent max-heap?
How do you declare A pointer to array of three chars
What is difference between data type and data structure?
What is the purpose of thread?
What is sorting rule in shapes?
Which data structure is used to perform recursion?
what is a balanced tree.