Functions vs Methods

Mathematical FunctionsGeneral Java Methods
Produce the same output for a given inputCan produce different values on each call (or no value at all)
Don't change the outside worldCan have side-effects
Have strict inputs and outputsCan communicate data to caller through inputs

16 / 22