Hello.
I have a confusion in self
test question of K&B. The chapter is 7 and question number is 7. It asks which collection allows to grow and shrink its size
and provides indexed access to its elements. The options are
A- java.util.HashSet
B- java.util.LinkedHashSet
C- java.util.List
D- java.util.ArrayList
E- java.util.Vector
F- java.util.PrioirityQueue
It says only D is correct. Why B is not included? It also provides index based insertion. Please help.
Thanks,
Ben