How can you say HashMap is syncronized?
Answer Posted / aruna kadaari
By using the below statment we can stnchronize the hashmap
Hashmap hm = new Hashmap();
Map m = Collections.synchronizedMap(hm);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is adapter in java?
What does microservices mean?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Which is easier netbeans or eclipse?
What is break and continue statement?
What is jrmp?
How to optimize the javac output?
Explain what are final variable in java?
Define jre i.e. Java runtime environment?
What are the differences between forwarding () method and sendredirect() methods?
What is variable length arguments in java?
What is passing parameters in java?
What are the fileinputstream and fileoutputstream?
Is string a datatype?
Is intellij better than eclipse?