Serious question: when should one use Java for greenfield projects in 2026?
Whoever works with, or chooses Java, is not doing it for the language itself, be it beautiful or not. Java has a huge ecosystem, from battle tested integrations to optimized images to build pipelines to whatever, so at the same you're buying access to all this world (yes, more than an environment). And of course transferable skills. I'm not saying Java is alone offering this, also not saying every feature is the best…
Nowadays a lot of code is written with mostly procedural style with some functional characteristics, I wouldn't use Java for that.