File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Java in General
Author
Difference b/w HashTable and HashMap
Raj Kumar Bindal
Ranch Hand
Joined: Apr 15, 2006
Posts: 407
posted
May 18, 2006 11:38:00
0
Please tell me all differences b/w a HashTable and
HashMap
**Plz also tell the situations in which each one of them should be used.
naveen gupta
Ranch Hand
Joined: Apr 12, 2006
Posts: 129
posted
May 18, 2006 15:37:00
0
http://www.informit.com/guides/content.asp?g=java&seqNum=95
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
May 18, 2006 16:09:00
0
did you read the api docs?
http://java.sun.com/j2se/1.5.0/docs/api/java/util/HashMap.html
line 2
"(The
HashMap
class is roughly equivalent to Hashtable, except that it is
unsynchronized and permits nulls.)"
Raj Kumar Bindal
Ranch Hand
Joined: Apr 15, 2006
Posts: 407
posted
May 18, 2006 22:06:00
0
Thanx a lot,
Both link were helpful to me.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Difference b/w HashTable and HashMap
Similar Threads
what's the difference between hashtable and hashMap
Can't develop logic
Hashtable doent allow null values ???
Hashtables are synchronized...
HashMap or HashTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter