This repository demonstrates various method overloading concepts in Core Java, including practical examples of constructor overloading, autoboxing, unboxing, var-args, and handling ambiguity in overloaded methods.
1️⃣ Ambiguity Issue in Overloading:
Demonstrates cases where overloaded methods can cause ambiguity.
Explains how Java resolves method calls when multiple matching signatures exist.
2️⃣ Autoboxing:
Shows how primitive types are automatically converted to their wrapper classes in overloaded methods.
3️⃣ Constructor Overloading:
Illustrates how multiple constructors can be defined with different parameter lists to initialize objects in various ways.
4️⃣ Method Overloading:
Practical examples showing different scenarios of method overloading based on parameters and return types.
5️⃣ Method Overloading:
A use-case demonstrating a payment processing system implemented using method overloading.
6️⃣ Unboxing:
Shows how wrapper classes are automatically converted back to primitive types in overloaded methods.
7️⃣ Var-Args (Variable Arguments):
Demonstrates how var-args (...) can be used for flexible parameter passing in overloaded methods.
🧩 Concepts Practiced
✅ Method Overloading
✅ Constructor Overloading
✅ Autoboxing & Unboxing
✅ Var-Args in Methods
✅ Compile-time Polymorphism
✅ Ambiguity Handling
🖥️ Technologies Used
Language: Java (Core Concepts)
IDE: Eclipse / IntelliJ IDEA / VS Code
JDK Version: 17 (or above recommended)