How TreeMap sorts the objects inside it?? suppose if have
include one employee object and one car object. On what
basis it will sort?
Answer Posted / anuj
then u have to tell the trremap that on what basis elment
shoyuld be sorted all elemtns of trremap should be of type
comparable & in side comparable compare to u need to put
uor sorting logic.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is a instance variable in java?
Explain how to convert any java object into byte array.
What is the difference between instanceof and isinstance?
Is an integer an object?
What is a class in java?
Explain super keyword in java.
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Why do you canvas?
can any body body expalin best definitions & best real time exaples for opps concepts.
What do negative exponents mean?
What is the largest long allowed by java?
What is multithreading in java?
Is it possible to write a regular expression to check if string is a number?
What is a line separator in java?
What is meant by distributed application? Why are we using that in our application?