How can you say HashMap is syncronized?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is high level language in computer?

541


what is the use of bean managed and container managed with example?

1502


What does file separator do in java?

541


What are white spaces in java?

534


Tell me about different OOPS concepts.

595






How to perform merge sort in java?

587


What are thread priorities and importance of thread priorities in java?

628


What are examples of modifiers?

516


What is string in java with example?

493


Write a java program to generate fibonacci series ?

575


What is foreach loop in java?

537


What is a ternary operator in java? What is an interface?

553


Is string an object?

658


is it possible to instantiate the math class?

535


What do bitwise operators do?

530