Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Programmer Certification (OCPJP)
HashMap Vs Hash table
Ginu Jacob
Greenhorn
Posts: 16
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Can anyone tell me the difference between hash map and hash table?
I know that hash table does not allow any null values whereas Hash map does.
Any other differences?
regards,
Ginu Jacob
Nibin Jacob Panicker
Greenhorn
Posts: 22
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The main diffrence btw HashTable and HashMap is that HashTable methods are Threads-Safe(meaning they are synchronised methods) while HashMap is not ThreadSafe..So basically HashTable is used when more than one
thread
will be accessing it..
Kudret Serin
Ranch Hand
Posts: 167
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
HashMap can store one null key and multiple null values but HashTable can not have any null.
HashTable is synchronized but HashMap is NOT.
Cheers
Ginu Jacob
Greenhorn
Posts: 16
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If u have any sample code for the same,please post it..
regards,
ginu
Are you okay? You look a little big. Maybe this tiny ad will help:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Doubt in Hash Map and Hash Table
Collections
Map or HashMap?
Hash Map and Hash Table.
how hashmap identify the duplicate values? (i need internal logic)
More...