Java Programming Tasks

Java Programming

 

In the Java Programming internship program, you will build a solid foundation in core Java through practical coding tasks and real-world mini projects. From basic syntax and object oriented programming to file handling, GUI development with Swing, and working with REST APIs, this program will help you gain hands-on experience with one of the most in-demand programming languages used across enterprise systems and applications.

 

Level 1: Easy Projects

 


Task 1: Java Development Environment Setup and Hello World

 

Problem Statement:
Set up Java development environment and write a simple “Hello, World!” program.


Steps to Complete:

  • Install JDK and an IDE (e.g., Eclipse, IntelliJ IDEA)
  • Configure environment variables if needed
  • Write and run a Java program that prints “Hello,World!”
  • Compile and run the program from command line and IDE 



Task 2: Basic Calculator Program


Problem Statement: Create a simple calculator that performs addition, subtraction, multiplication,
and division.


Steps to Complete:

  • Take user input for two numbers and an operator
  • Perform the calculation based on the operator
  • Display the result
  • Handle division by zero and invalid inputs

 


Task 3: Arrays and Loops Practice

 

Problem Statement:
Write a program that takes an array of integers and finds the maximum and
minimum values.


Steps to Complete:

  • Define an array of integers
  • Loop through the array to find max and min values
  • Print the maximum and minimum values

 

 

Level 2: Intermediate Projects

 

 

Task 4: File Handling – Read and Write Text Files

 

Problem Statement:
Create a program that reads text from one file and writes it to another file in
uppercase.


Steps to Complete:

  • Open a text file and read its contents using FileReader and BufferedReader
  • Convert the text to uppercase
  • Write the uppercase text to a new file using FileWriter and BufferedWriter
  • Handle file exceptions

 



Task 5: Simple Contact Management System

 

Problem Statement:
Build a program to add, view, and search contacts using ArrayList and custom Contact class.


Steps to Complete:

  • Create a Contact class with name and phone number fields
  • Use ArrayList to store Contact objects
  • Implement functions to add a contact, view all contacts, and search by name
  • Display search results

 



Task 6: Basic Banking System

 

Problem Statement:
Simulate simple banking operations like deposit, withdrawal, and balance inquiry.


Steps to Complete:

  • Create a BankAccount class with balance and methods for deposit and withdrawal
  • Ensure withdrawal does not allow negative balance
  • Implement a simple menu-driven interface for user interaction
  • Display current balance after each transaction

 


Level 3: Advanced Projects

 

 

Task 7: Student Management System with File Persistence

 

Problem Statement:
Create a student management system that stores student records in a file.


Steps to Complete:

  • Create a Student class with fields like name, ID, and grade
  • Implement adding, viewing, and searching student records
  • Save student data to a file and read from it on program start
  • Use serialization or file I/O for persistence



Task 8: Simple GUI Calculator using Swing

 

Problem Statement:
Develop a basic calculator with a graphical user interface using Java Swing.


Steps to Complete:

  • Create GUI with buttons for digits and operations
  • Display input and result in a text field
  • Handle button clicks and perform calculations
  • Implement error handling for invalid inputs

 

 

Task 9: REST API Client Using HttpURLConnection

 

Problem Statement:
Write a Java program that fetches data from a public REST API and displays it.


Steps to Complete:

  • Use HttpURLConnection to send GET requests
  • Connect to a public API (e.g., JSONPlaceholder)
  • Parse the JSON response using a library like org.json or Gson
  • Display selected data in the console

Join our online community

Leave a Comment

Your email address will not be published. Required fields are marked *

Review My Order

0

Subtotal