Question: what is the difference between list and collection in java?
Answer: Collection is a high-level interface describing Java objects that can contain collections of other objects. ... Collections are only iterable sequentially (and in no particular order) whereas a List allows access to an element at a certain position via the get(int index) method.