HashMap<K,V>
stores data as array of entry. i.e
Entry<K,V>[] table
and type of key and value inside Entry are K and V respectively.
But..
ArrayList<E>
stores data as array of object. i.e.
Object[] elementData
So wondering why ArrayList doesn't use array of type E ??