Java is one of the very few languages out there that is manageable and debuggable at the large scales you're talking about. The tooling around it is second to none, and because it is statically typed with a decent type system, you can refactor quite safely in general.
And let's be frank, XML, other than for Maven (where it can make sense), is not really a thing in modern Java.