How can you say HashMap is syncronized?

Answers were Sorted based on User's Feedback



How can you say HashMap is syncronized?..

Answer / maheswari

First of all I don't think HashMap is Syncronized,is it not
HashTable

Is This Answer Correct ?    27 Yes 0 No

How can you say HashMap is syncronized?..

Answer / rahul

yes u r correct, hashmap is not threadsafe. It is hashtable
which is synchronized.

Is This Answer Correct ?    15 Yes 0 No

How can you say HashMap is syncronized?..

Answer / kishore

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.

Is This Answer Correct ?    16 Yes 1 No

How can you say HashMap is syncronized?..

Answer / suma

I agree with you. HashMap is not synchronized.

Is This Answer Correct ?    11 Yes 0 No

How can you say HashMap is syncronized?..

Answer / dijesh

hashmap is unsynchronised and hash table is
synchronised.....hashmap permits null...but hashtable does
not.

Is This Answer Correct ?    7 Yes 0 No

How can you say HashMap is syncronized?..

Answer / senthil

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

Is This Answer Correct ?    4 Yes 2 No

How can you say HashMap is syncronized?..

Answer / rajender

i agree with 3,4,5,6,7 answers .hashmap is not syncronized

Is This Answer Correct ?    2 Yes 0 No

How can you say HashMap is syncronized?..

Answer / jyotisubhra ghosh

I am sorry...HashMap is not syncronised. Its not thread
safe..rather Hashtable is syncronised...

Is This Answer Correct ?    2 Yes 0 No

How can you say HashMap is syncronized?..

Answer / vikas

HashMap is not synchronised, nor thread safe.

Is This Answer Correct ?    2 Yes 0 No

How can you say HashMap is syncronized?..

Answer / sunil

Hash map is unsyncronised and hash table is syncronised

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is daemon thread and which method is used to create the daemon thread? : Java thread

0 Answers  


What is method in research paper?

0 Answers  


Is there any tag in htm to upload and download files?

0 Answers  


Why a dead thread occurs?

0 Answers  


Can you have two constructors in java?

0 Answers  






what is the use/perpose of having a method antive?

2 Answers  


Is arraylist zero based?

0 Answers  


What is annotation in java?

0 Answers  


In the below example, how many string objects are created?

0 Answers  


What is the base class of all exception classes in java?

0 Answers  


what is the use of reference variable

6 Answers  


What is casting in java programming?

0 Answers  


Categories