| Question |
How can you say HashMap is syncronized? |
|
Question Submitted By :: Acp |
|
I also faced this Question!! |
Rank |
Answer Posted By |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 1 | HashMap is a collection class which is a syncronized class
why because if one thread is processing one process another
thread will wait for when running thread will comeout after
then only next thread will enter into that process that's
why it is syncronized  |
| Reddy Edagottu |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 2 | hasmap is syncronized why because if hashmap is processing
by one thread another thread will wait till the thread
comeout which currently processing after than only next
thread process the hashmap  |
| Reddy Edagottu |
| |
|
|
| |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 3 | First of all I don't think HashMap is Syncronized,is it not
HashTable  |
| Maheswari |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 4 | yes u r correct, hashmap is not threadsafe. It is hashtable
which is synchronized.  |
| Rahul |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 5 | I agree with you. HashMap is not synchronized.  |
| Suma |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 6 | hashmap is unsynchronised and hash table is
synchronised.....hashmap permits null...but hashtable does
not.  |
| Dijesh |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 7 | raja vin paarvai raniyin pakkam, kan mooduthe vetkam pon
maalai mayakam.toku toku toku,java is a very worest
language in computer or IT field  |
| Senthil |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 8 | i agree with 3,4,5,6,7 answers .hashmap is not syncronized  |
| Rajender |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 9 | I am sorry...HashMap is not syncronised. Its not thread
safe..rather Hashtable is syncronised...  |
| Jyotisubhra Ghosh |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 10 | Hash map is unsyncronised and hash table is syncronised  |
| Sunil |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 11 | HashMap is not synchronised, nor thread safe.  |
| Vikas |
| |
|
Re: How can you say HashMap is syncronized? |
Answer
# 12 | HashMap is not synchronized.
If u want to synchronized we have to do
HashMap map=java.util.Collections.synchronizedMap(new
HashMap());
Hash Map permits Key and values are Null.  |
| Kishore |
| |
| |