Tuesday, September 14, 2010

Which Collection Should be used when?

* Use Vector if there are multiple threads and ArrayList if there is only a single thread.

* Use Hashtable if there are multiple threads and HashMap if there is only a single thread.

* Use StringBuffer if there are multiple threads and StringBuilder if there is only a single thread.

For explanation visit Skeleton Coder

No comments:

Post a Comment