It can be theoretically infinite. Largest coordinate number understood by Java is 9,223,372,036,854,775,807 (64-bit integer limit). So you can't really say it's infinite, unless you have computer with infinite power, that can teleport you to infinite x or z coordinate.