Pages

Men

rh

6/16/2012

Difference between Array List and Hash Table:-

Difference between Array List and Hash Table:-
Array List
  • Array list is a collection of objects(may be of different types).
  • We can add items to the Array List.
  • Array List’s size can be changed dynamically
  • index elements in an ArrayList with a numeric index.
Hash table
  • Hash table is also collection which takes a key corresponding to each values.
  • Hash table we can add data with the Key.
  • A Hash table class is dynamically expands and contracts but doesn't impose an order on the elements like an array does. 
  • index elements in a Hash Table with a key.  Such a key is often a string...

No comments :

Post a Comment