Please enable JavaScript to use CodeHS

CodeHS Glossary


Return value Java

The return value is the value returned from a method. The return value can be stored inside a variable at the method's call site. ``` // the sum method sums together 5 and 4, and returns the return value of 9 // the return value is stored inside the variable result int result = sum(5, 4); ```