Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Few java thread and collection questoins

Thread Tools

Few java thread and collection questoins

Roedy Green
Posts: n/a
On Sun, 29 Jan 2006 18:17:51 GMT, zero <(E-Mail Removed)> wrote, quoted or
indirectly quoted someone who said :

>I don't know where you got the idea that HashMap is slower than Hashtable.
>HashMap provides constant time operations for simple operations (put, get)
>- that's the whole point of hashing (if it's a good hashing algorithm).

HashMap is slightly faster since it is does not have the thread-safety
Canadian Mind Products, Roedy Green. Java custom programming, consulting and coaching.
Reply With Quote
Posts: n/a
Nice link, gives you most of the information you need about hasmap,
hashtable, treemap..

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet connects for a few seconds then disconnects for a few sec Cody Wireless Networking 2 06-28-2009 08:24 PM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Řyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Sorting the Collection(java.util.Collection) of Elements Pradeep Java 2 01-24-2007 02:33 PM
To delete few lines and add few lines at the end of a text file using c program Murali C++ 2 03-09-2006 04:45 PM
STL - an algorithm for finding a collection within a collection? Dylan C++ 5 03-22-2005 01:31 AM