OOPs with Java (BCS-403)
Assignment 4
Based on Unit 4 (CO3)
Branch: CSDS-B, AIDS
Date of Submission: 9-06-2025
Long Answer Type
Note: Attempt any 5 Questions.
Q1. Explain the hierarchy of the Collection Framework in Java. Provide examples of each
category.
Q2. What is the difference between the Collection Interface and the Collections class in Java?
Illustrate with code examples.
Q3. Explain the differences between ArrayList, LinkedList, and Vector in Java. When would you
choose one over the other?
Q4. Discuss the difference between the List Interface and the Set Interface in Java.
Q5. Describe the Stack class. Write a Java program to implement a basic stack using this class.
Q6. What are the key differences between HashMap, LinkedHashMap, TreeMap, and Hashtable
in Java?
Q7. Describe the Map interface in Java. How does it differ from the Collection interface?
Q8. Describe the use of the Comparable interface. Write a program that sorts custom objects
using Comparable.
Q9. What are the differences between Hashtable and HashMap?
Q10. Discuss the role of the Properties class in Java. Give an example of loading and reading
from a .properties file.