In computer programming, the return type (or result type) defines and constrains the data type of the value returned from a subroutine or method. In many programming languages (especially statically-typed programming languages such as C, C++, Java) the return type must be explicitly specified when declaring a function.
In the Java example:
public int someMethodthe return type is int. The program can therefore rely on the method returning a value of type int. Various mechanisms are used for the case where a subroutine does not return any value, e.g., a return type of void is used in some programming languages:
public void returnNothingFamous quotes containing the words return and/or type:
“The future of humanity is uncertain, even in the most prosperous countries, and the quality of life deteriorates; and yet I believe that what is being discovered about the infinitely large and infinitely small is sufficient to absolve this end of the century and millennium. What a very few are acquiring in knowledge of the physical world will perhaps cause this period not to be judged as a pure return of barbarism.”
—Primo Levi (19191987)
“One type of rice nourishes one hundred types of people.”
—Chinese proverb.