double sum.
double maximum with initial value
Double.NEGATIVE_INFINITY.
long sum.
long maximum with initial value
Long.MIN_VALUE.