java - Hash Table Size Setting -


do have know size of array hashtable prior creating array?

no, don't. quality implementation (hashtable/hashmap) resize automatically number of elements increases.

if talking own implementation, answer depends on whether hash table capable of increasing number of buckets size grows.

if worried performance implications of resizing, correct approach profile in context of overall application.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -