Java defines it this way. That is all you really can say.
However, mathematically this number is undefined. One way to understand why to write
x = 0 ^ 0
where I used ^ to represent exponentiation. Taking the logarithms
log x = 0 log 0
I did this because every mathematician admits that log 0 is undefined, and therefore it follows that log x and therefore x are also undefined. (Mathematically, this is called a singularity, and the mathematician will tell you that this is one of the worst features you may encounter).
source share