HCLTech Interview Question

1. What are the primitive data types in java? 2. What are the collections in java? 3. What does the TreeSet do and how different it is from the TreeMap. 4. Difference between list and set?