how sparse array differs from a hashmap in java

Viewed 5643

In my Android application I have used Hash maps in many situations. And I was asked to use sparse arrays by concerning the performance of the application. So, how sparse array differs from a hashmap in java and what are the advantages of sparse array over hashmap . Thank You.

1 Answers
Related