They use Ubuntu on x86-64 servers, at least for iCloud. Backends for iCloud, Photos and Backups etc. are written in Java.
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.
https://news.ycombinator.com/item?id=44172166
https://www.swift.org/blog/swift-at-apple-migrating-the-pass...