Angsuman's Java Blog

News and views from my perspective as a Chief Software Architect and CEO. Focused on Java and Web Technologies.


Saturday, February 15, 2003


1. Array good for index based retrieval
2. HashTable & HashMap good for random retrieval
3. HashMap not synchronized, HashTable synchronized, hence slower where synchronization is not required; HashMap requires external synchronization using Collections class, where synchronization is required
4. Vector like array, only resizable. Performance can be improved by estimating proper initial size
-----Original Message-----
From: Wach***
Sent: Friday, February 14, 2003 2:27 PM
Subject: need your suggestion...array vs. vector vs. hastable : what the pros and cons ?


In term of performance…