How to sort the elements in HashMap

Answer Posted / srinivasa

By implementing comparable interface we can sort the
HashMap

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Transient Object?

830


What is a char in java?

749


How do I write a self declaration?

765


What is the difference between hashmap and hashtable? What is an interface?

797


What is the final keyword in java?

1029


What is a string what operation can be performed out with the help of a string?

753


What one should take care of, while serializing the object?

676


Is empty string in java?

825


What is Java Annotations?

747


Can we extend singleton class in java?

749


What does function identity () do?

722


Why inputstreamreader is used in java?

777


What do you understand by the bean persistent property?

776


What is the simpletimezone class in java programming?

832


What languages are pass by reference?

783