Question: what is the difference between arraylist and set?
Answer: The difference is that Set is stored in unordered way and does not allow duplicate values. List is used to store elements in ordered way and it does allow duplicate values.