A simple Calculator Application written in Java that allows users to perform basic arithmetic operations such as Addition, Subtraction, Multiplication, and Division.
This project demonstrates the use of Java OOP concepts like Method Overloading, Polymorphism, Exception Handling, along with control structures and user input handling using the Scanner class.
- โ Perform Addition, Subtraction, Multiplication, and Division
- ๐ Method Overloading for different parameter types:
- Add two integers
- Add two doubles
- Add three integers
โ ๏ธ Handles division by zero with proper exception handling- ๐งญ Interactive menu-driven interface
- ๐งฑ Clear, modular code structure โ great for learning core OOP concepts in Java
- Language : Java
- IDE : VS Code
- โ Object-Oriented Programming (OOP)
- โ Method Overloading (compile-time Polymorphism)
- โ
Exception Handling (
try-catch) - โ
Control Structures (Loops,
switch-case) - โ Scanner for reading user input
Welcome to the Calculator Application!
- Add Numbers
- Subtract Numbers
- Multiply Numbers
- Divide Numbers
- Exit
Enter your choice: 1
Choose Addition Type:
- Two Integers
- Two Doubles
- Three Integers
Enter your choice: 1
Enter first integer: 10
Enter second integer: 20
Result: 30