Java Math. is not math, this is just computer realisation of mostly sets and algebra (including numerical integration). Many of these beauties wouldn’t happen in Mathematica.

As far as max() etc, Java is actually doing a good job, see below. But claiming that +infty > -infty and hence max() > min() is making assumptions about those symbols.

Look at the answer by Economist88c5 in https://www.econjobrumors.com/topic/what-is-the-maximum-of-the-empty-set

Also https://math.stackexchange.com/questions/1192018/does-the-empty-set-have-a-minimum-if-it-is-a-subset-of-r where it is clear that many software engineers don’t understand the difference between closed and open sets or the important difference between > and ≥, leave alone asymptotics, boundaries … some of which they should understand and some they shouldn’t need to.

Finally, a whole wikipedia page on the null set! https://en.wikipedia.org/wiki/Empty_set