Java doesn't run on iOS. Period. In fact it's almost impossible to build an iOS app using Java - the only ways to do it are essentially to transpile Java to some other language, so Java isn't running on iOS at all.
iOS is one of the most popular operating system in the world by any measure. It supports a lot of languages.
But that is not Javas problem, but IOS. They could use available languages, but they refuse and instead make you use their own programming language, swift. Even more vendor lock-in. Once you start using Apple shit, you join a cult of technology dictatorship.