In java-8 Streams Reducer in simple works is a function which takes two values as input and returns result after some calculation. this result is fed in next iteration.
in case of Math:max function, method keeps returning max of two values passed and in the end you have largest number in hand.