It's definitely not the trendy language anymore. We still have a lot of it because of legacy products and a generation trained on it mostly. But new languages are objectively better and getting adopted at a faster rate than ever. What young programer wants to write java nowadays? When you have Golang, Rust, Swift, Python, etc.
What young programer wants to write java nowadays?
You'd be surprised. In some parts of the world it's the default, because somebody has to pump out all those CRUD apps for a competitive price.
It's such an obvious choice for some that at least once in my career I was asked "what went wrong?" that I had chosen to become a front-end developer instead.
The other day I sent my CV to a company doing stuff in Go. I'm more of a Rust person and I've never done this professionally, but hey - there isn't much competition so I might as well take advantage of this opportunity.
It's more than "legacy stuff" as well. People always hear "Java" and immediately think "legacy application". I find it quite amusing. It's this weird idea that somehow nobody would or could ever write a new application in Java. Yet here we are with RedHat Thorntail (previously Swarm) and other modern frameworks written in Java and ready to deliver solid large-scale performance.
I like it that way. Keeps my rate high while doing trivial CRUD applications.
On a serious note, I still think Java has one if not the best ecosystem of any language. Fast JVM, lots of high quality Open Source libraries/frameworks, tooling (IDEs, monitoring, debugging) and if you have a problem you probably are not the first one and usually find an answer.