Functions vs Methods
| Mathematical Functions | General Java Methods |
|---|---|
| Produce the same output for a given input | Can produce different values on each call (or no value at all) |
| Don't change the outside world | Can have side-effects |
| Have strict inputs and outputs | Can communicate data to caller through inputs |
16 / 22