What is modcount in hashmap?



What is modcount in hashmap?..

Answer / Km Karuna

modCount is a variable in HashMap that keeps track of the number of times structural modifications (add or remove) have been performed on the map since it was created. It's used for optimized iteration and to prevent users from manipulating the map concurrently with iterators.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Explain linear linked implementation of Stack and Queue?

1 Answers  


What is the impact of signed numbers on the memory?

1 Answers  


What is the difference between a push and a pop?

1 Answers  


Explain the expression trees?

1 Answers  


Program to remove duplicate elements in an array.

1 Answers   InterGraph,


What is the best case complexity of quicksort?

1 Answers  


How do you declare A pointer to array of three chars

1 Answers  


Why set will not allow duplicates?

1 Answers  


If you do not initialize an array what will happen?

1 Answers  


Write a program for reversing the Single Linked List?

1 Answers   Honeywell, Zomato,


Can you sort a hashset?

1 Answers  


What are the applications of priority queues?

1 Answers  


Categories