Return Type

The type of value a method promises to return.

What is Return Type in Java?

Return Type — The type of value a method promises to return.

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

Level: Apprentice · More Java terms at this level

Updated

In other subjects