What are differences between Array list and Hash table.


=> Hash table store data as name, value pair. While in array only value is store.

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

=> 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.

Share

& Comment

0 comments:

Post a Comment

 

Copyright © 2019 HART™ is a registered trademark.