Java Internship Tasks
Java Internship Tasks
• Task: Create a simple Java program that accepts user input (name and age) and displays
a personalized greeting.
• Goal: Practice with basic I/O, data types, and string handling.
• Task: Implement a Car class with attributes like make, model, and year. Include
methods for starting the car, accelerating, and braking.
• Task: Create a class hierarchy with Animal, Dog, and Cat. The Animal class should have
a makeSound() method, which is overridden in the Dog and Cat classes.
4. Exception Handling
• Task: Create a program that divides two numbers. Add exception handling to manage
cases like dividing by zero and invalid input.
• Goal: Teach them how to use try-catch blocks for handling exceptions.
5. File Handling
• Task: Write a program that reads data from a file and writes the output to another file.
The data could be a list of students with their grades, and the program should output
their average grades.
6. Collections Framework
• Task: Create a program that uses an Array List to store and sort a list of employee
names. Add functionality to search for an employee and remove one from the list.
7. Multithreading
• Task: Create a multithreaded Java program that simulates a bank with multiple ATMs.
Each ATM (thread) should handle customer transactions like deposits and withdrawals.
• Task: Write a simple calculator class and create unit tests using JUnit to validate
operations like addition, subtraction, multiplication, and division.
• Goal: Teach them how to write unit tests and use a testing framework.
• Task: Build a basic web application using Java Servlets that displays a welcome
message to users who log in with valid credentials.
10. Basic Web Application with Servlets – A step into web development, which is more
advanced.