WHAT ARE DIFFERENCES BETWEEN ARRAY LIST AND HASH TABLE?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
 922  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    What are differences between Array list and Hash table?

    1) Hash table store data as name, value pair. While in array only value is store.

    2) To access value from hash table, you need to pass name. While in array, to access value, you need to pass index number.

    3) you can store different type of data in hash table, say int, string etc. while in array you can store only similar type of data.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!