0% found this document useful (0 votes)
2 views2 pages

lab exp oom

The document outlines ten lab exercises focused on various programming concepts in Java, including socket programming, GUI development, multithreading, JDBC, collections framework, MVC architecture, applets, file handling, and web scraping. Each exercise includes a title, objective, and specific tasks to be completed. The exercises aim to enhance practical skills in software development and application design.

Uploaded by

kkhushii2204
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)
2 views2 pages

lab exp oom

The document outlines ten lab exercises focused on various programming concepts in Java, including socket programming, GUI development, multithreading, JDBC, collections framework, MVC architecture, applets, file handling, and web scraping. Each exercise includes a title, objective, and specific tasks to be completed. The exercises aim to enhance practical skills in software development and application design.

Uploaded by

kkhushii2204
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/ 2

Lab Exercise 1: Socket Programming

Title: Chat Application


Objective: Create a simple chat application using sockets.
Tasks:
1. Implement a server that listens for client connections.
2. Create a client that can send messages to the server and receive echoes back.
3. Extend the functionality to allow multiple clients to connect (use threads).

Lab Exercise 2: GUI Development


Title: Simple Note-taking Application
Objective: Develop a note-taking application using Swing.
Tasks:
1. Create a GUI with a text area, save button, and load button.
2. Implement functionality to save notes to a file and load notes from a file.
3. Use file dialog boxes for file operations.

Lab Exercise 3: Multithreading


Title: Producer-Consumer Problem
Objective: Simulate the producer-consumer problem using threads.
Tasks:
1. Create a buffer (using an ArrayList) shared between producer and consumer threads.
2. Implement producer threads that add items to the buffer.
3. Implement consumer threads that remove items from the buffer.
4. Ensure proper synchronization to avoid race conditions.

Lab Exercise 4: Java Database Connectivity (JDBC)


Title: Employee Management System
Objective: Build a simple employee management system using JDBC.
Tasks:
1. Create a MySQL database with an employees table (id, name, department).
2. Implement functionalities to insert, update, delete, and retrieve employee records.
3. Use prepared statements to prevent SQL injection.

Lab Exercise 5: Collections Framework


Title: Student Grades Management
Objective: Manage student grades using Java Collections.
Tasks:
1. Create a Student class with attributes (name, ID, grades).
2. Use an ArrayList to store student objects.
3. Implement functionalities to add students, remove students, and calculate average grades.

Lab Exercise 6: MVC Architecture in GUI


Title: Simple Library Management System
Objective: Implement a library management system using MVC architecture.
Tasks:
1. Create a model to manage book records (add, remove, update).
2. Create a view to display the GUI for the library.
3. Implement a controller to handle user interactions and update the model and view.

Lab Exercise 7: Applets and Event Handling


Title: Color Picker Applet
Objective: Create an applet that allows users to pick colors.
Tasks:
1. Implement a color picker using buttons for primary colors.
2. Change the background color of the applet based on user selection.
3. Handle button clicks to update the color.
Lab Exercise 8: Swing Application
Title: To-Do List Application
Objective: Create a to-do list application using Swing.
Tasks:
1. Implement a GUI with a text field to add tasks and a button to add them to a list.
2. Use JList to display the list of tasks.
3. Implement functionality to remove selected tasks.

Lab Exercise 9: File Handling


Title: Simple File Explorer
Objective: Build a file explorer to display directory contents.
Tasks:
1. Create a GUI to select a directory.
2. List all files and directories in the selected directory.
3. Allow users to open files using the default application.

Lab Exercise 10: Simple Web Scraper


Title: Basic Web Scraper
Objective: Create a simple web scraper to extract data from a webpage.
Tasks:
1. Use libraries like Jsoup to fetch and parse HTML content.
2. Extract specific information (e.g., titles, links) from a given URL.
3. Display the extracted information in the console or a GUI.

You might also like