Monday, 25 April 2016

Why TreeMap does not allow an initial size ?


Why TreeMap does not allow an initial size ?

On adding new ones, size of the TreeMap dynamically increases if needed, without shuffling the internals Unlike, HashMap

So, there is no point to have initial size of the TreeMap.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.