> A LOT of companies used it and can't easily switch their codebase to something newer and shinier
I don't agree with that. Spring Boot makes it so easy to write nice backends and a type system is often useful
> they have fewer reasons to move
Move to what btw? NodeJS?
Java is, however, used for services. Bank logins, search engines (Google originally used it), insurance systems.
C#, C++ and Rust are in the same area. But Java, for the most case, has been around longer.
A LOT of companies used it and can't easily switch their codebase to something newer and shinier. And now Java improves with every release they have fewer reasons to move.