Easy Core Java Learning Plan
Core Java Practice Exercises + Mini Project
Practice - Variables & Data Types:
1. Declare variables of each data type.
2. Perform addition of two integers and print the result.
Practice - Operators:
1. Write a program to demonstrate all arithmetic operators.
2. Use logical operators in an if-statement.
Practice - if-else:
1. Write a program to check if a number is positive, negative, or zero.
Practice - switch:
1. Write a program using switch to print the name of the day based on day number (1-7).
Practice - Loops:
1. Print numbers from 1 to 10 using for, while, and do-while loops.
2. Print even numbers between 1 and 50.
Practice - Arrays:
1. Store 5 numbers in an array and find their sum.
2. Find the largest number in an array.
Practice - Strings:
1. Check if a string is a palindrome.
2. Count vowels in a string.
Easy Core Java Learning Plan
Practice - Methods:
1. Create methods to perform add, subtract, multiply, divide.
2. Call them from main and print results.
Practice - Static & Non-static:
1. Create a static method and call it without creating an object.
2. Create a non-static method and call it using an object.
Practice - OOP:
1. Create a class `Car` with attributes and a display method.
2. Use constructor to initialize the values.
Practice - Inheritance & Polymorphism:
1. Create a class `Animal` and a subclass `Dog`. Override the sound method.
Practice - Exception Handling:
1. Write a program that catches divide-by-zero exception.
2. Add a finally block that always runs.
Practice - Collections:
1. Use ArrayList to store student names.
2. Use HashMap to store roll number and student name.
Mini Project: Student Management System (Console App)
Create a simple Java application that can:
1. Add a student (name, roll number)
2. Display all students
Easy Core Java Learning Plan
3. Search for a student by roll number
4. Delete a student by roll number
Use:
- Class and Object for Student
- ArrayList to store students
- Scanner for input
- Methods for each operation
- Exception handling for invalid input