0% found this document useful (0 votes)
10 views1 page

Assignment 4 OOPs With Java

This document is an assignment for a course on Object-Oriented Programming with Java, specifically focusing on the Collection Framework. It includes 10 long-answer questions covering various aspects of Java collections, such as interfaces, classes, and their differences. The assignment requires students to answer any 5 questions and is due on June 9, 2025.

Uploaded by

Srashti Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Assignment 4 OOPs With Java

This document is an assignment for a course on Object-Oriented Programming with Java, specifically focusing on the Collection Framework. It includes 10 long-answer questions covering various aspects of Java collections, such as interfaces, classes, and their differences. The assignment requires students to answer any 5 questions and is due on June 9, 2025.

Uploaded by

Srashti Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like