Project Based Learning in Java · 24CSH-301 / 24ITH-301
Unit 2 Laboratory Worksheets
Unit 2 covers advanced Java programming and database connectivity. Experiments 2.1
and 2.2 are available now, moving from the Collections Framework and synchronised
multithreading to wrapper classes, serialization, and file handling, each through
graded Easy, Medium, and Hard implementation tasks.
Available
Experiments 2.1 and 2.2 of 4
Learning evidence
Programs, sample output, viva, and submission checklist
Mapped outcomes
CO2, CO3, and CO4
Available
Collections, Threads, Wrapper Classes, and Files
Manage and manipulate data with the Collections Framework, then coordinate concurrent access with synchronised threads.
- Easy: Store employee records in an ArrayList with add, update, remove, and search.
- Medium: Collect and look up playing cards by symbol using the Collection interface.
- Hard: Build a ticket booking system with synchronised threads and thread priority.
Open worksheet
Convert between primitives and wrapper objects, then make program data outlive the program by writing objects to files.
- Easy: Total a list of integers using autoboxing, unboxing, and wrapper parsing.
- Medium: Serialize a Student object to a file and read it back with full exception handling.
- Hard: Menu-driven employee records saved to and reloaded from a file.
Open worksheet
Planned
Remaining Unit 2 experiments
- 2.3 Lambda expressions and stream-based sorting, filtering, and processing.
- 2.4 JDBC connectivity, CRUD operations, and MVC architecture.