How can you say HashMap is syncronized?
Answers were Sorted based on User's Feedback
Answer / maheswari
First of all I don't think HashMap is Syncronized,is it not
HashTable
| Is This Answer Correct ? | 27 Yes | 0 No |
Answer / rahul
yes u r correct, hashmap is not threadsafe. It is hashtable
which is synchronized.
| Is This Answer Correct ? | 15 Yes | 0 No |
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 |
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 |
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 |
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 |
Answer / sunil
Hash map is unsyncronised and hash table is syncronised
| Is This Answer Correct ? | 1 Yes | 0 No |
What is singleton service?
How to find the index of the largest number in an arraylist java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
Why is singleton not thread safe?
what is mean by ooad? where we are using? can you tell me any real time example?
Is 0 true or is 1 true?
explain the collection in java
Explain JPA in Java.
If you are given the name of the function at run time how will you invoke the function?
What is the difference between comparison done by equals method and == operator?
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
Why java is platform independent? Explain.