Method Argument

noun

say it: “METH-ud AR-gyoo-ment” /ˈmɛθəd ˈɑrɡjəmənt/

The actual value you pass into a method when you call it.

What is Method Argument in Java?

Method Argument — A value supplied to a parameter when a method is called.

class OrderCalculator {
    int total(int price, int quantity) {
        return price * quantity;
    }
}

In a sentence

  • “In greet("Maria"), the argument "Maria" goes into the method's name parameter.”

Level: Apprentice · More Java terms at this level

Updated

In other subjects