All

010-001 - Important Notes

Method overloading is a mechanism that allows you to define multiple methods with the same name but different parameters. This enables you to use a consistent name for similar operations, improving code readability.

Basic rules for overloading:

  • Method names must be identical
  • Parameters must differ in number or type
  • Different return types alone do not constitute valid overloading

Example:
public int add(int a, int b) { return a + b; }
public double add(double a, double b) { return a + b; }

Problems (13)

Try for Free
010-001-001

Method Overloading: Type Difference

# <a href="https://javadrill.tech/problems/010"><a href="https://javadrill.tech/problems/008">method...

Try for Free
010-001-002

Method Overloading: Parameter Count

# <a href="https://javadrill.tech/problems/010"><a href="https://javadrill.tech/problems/008">method...

010-001-003

String Operations: String Info

**In this problem**, you will create a program that takes a string as input and displays its length,...

010-001-004

Sales Tax Calculator (Method Overloading)

[Explanation] ## 🎯 Problem Overview This problem teaches you about the important concept of "<a h...

010-001-005

Method Overloading: Calculator Class

# <a href="https://javadrill.tech/problems/010"><a href="https://javadrill.tech/problems/008">method...

010-001-006

Overloading Concept: Calculator

# Overloading Concept: Calculator **In this problem**, you will create a program that defines two `...

010-001-007

Method Overloading: Type Difference

# <a href="https://javadrill.tech/problems/010"><a href="https://javadrill.tech/problems/008">method...

010-001-008

Method Overloading: Parameter Count

# <a href="https://javadrill.tech/problems/010"><a href="https://javadrill.tech/problems/008">method...

010-001-009

Overloading Basics: Print Methods

# Overloading Basics: Print Methods **In this problem**, you will create a program that implements ...

010-001-010

Switching Greetings with Overloading

# Switching Greetings with Overloading **In this problem**, you will create a program that reads a ...

010-001-011

Area Calculation with Overloading

# Area Calculation with Overloading **In this problem**, you will create a program that defines thr...

010-001-012

Method Overloading Basics

# <a href="https://javadrill.tech/problems/010"><a href="https://javadrill.tech/problems/008">method...

010-001-013

Overload Concept: Calculator Class

# <a href="https://javadrill.tech/problems/010">Method Overloading</a> Concept: Calculator <a href="...