Question
When do you use ConcurrentHashMap in Java?

Answers

This is another advanced level collection interview questions in Java which normally asked to check whether interviewer is familiar with optimization done on ConcurrentHashMap or not. ConcurrentHashMap is better suited for situation where you have multiple readers and one Writer or fewer writers since Map gets locked only during write operation. If you have equal number of reader and writer than ConcurrentHashMap will perform in line of Hashtable or synchronized HashMap.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q What is one reason colonists came to America?
  • Q Mention the divisions of Compound Word.
  • Q With which troubled son are parents Laius and Jocasta associated?
  • Q What are meant by ‘Ramzar Sites’ ?
  • Q Which conditions must be satisfied in order for the organization to be able to claim an affirmative action defense? Check all that apply. (A)Organization has a strong written policy against harassment (B)Plaintiff failed to take advantage of remedies offered by the policy (C)Organization is facing $50,000 in punitive damages
  • Q How do you use commitment control in rpg?
  • Q In Fahrenheit, at what temperature does water freeze?
  • Q Give some examples where property editing is used in spring.
  • Q What are tile report types?
  • Q In what World Cup did the England goals by Mariner, Robson and Francis feature in games against France, Czechoslovakia and Kuwait?
  • Q After working all night and successfully configuring a Cisco router for the Certkiller network you save your changes on the startup configure, reboot the router, and go out for a cigarette. When you return, none of your changes are active and the router boots to the initial configuration mode! Which of the choices below indicates the source of your problem? A. Hardware failure in NVRAM prevents the router from loading the config B. Startup-config in flash is corrupt and cannot be analyzed C. Router configuration-register set to bypass startup configuration D. Startup-config in NVRAM is corrupt and cannot be analyzed E. None of the above