NeXT added a Java variant to WebObjects and it was for several years the main server side infrastructure, after being acquired by Apple.
Nowadays you can usually still find Java and JVM languages like Clojure (Apple Maps), on Apple's job ads.
How much of it is still Java based, no idea.
I imagine XCode Cloud has nothing to with it for example.