Return Type
say it: “ri-TURN TYP” /rɪˈtɝn taɪp/
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