- What is the default size of
TreeSetandCopyOnWriteArrayList? - What is the load factor of
TreeSetandCopyOnWriteArrayList? - What is the size growth rate of
TreeSetandCopyOnWriteArrayList?
Thanks in advance.
TreeSet and CopyOnWriteArrayList? TreeSet and CopyOnWriteArrayList? TreeSet and CopyOnWriteArrayList?Thanks in advance.
The 3 properties you're asking about don't really apply to
TreeSetandCopyOnWriteArrayList, same as they don't apply to e.g.LinkedList.But if you want answers, they are:
Default size: 0
Load factor: 100%
Size growth rate: 1
I.e. the default/initial size is 0, they are always 100% full, and they grow/shrink by 1 every time an element is added/removed.