built in max function in javca code example Example: math maximum java Math.max(a, b); // a & b = int, double, float, or long