There is so much negativity around Java that I wonder why anyone starting on their journey to becoming a programmer would want to learn it or work with it.
Pick the list of Fortune 500 companies and many smaller ones that work with them, take out the few SV darlings, and they will either be using .NET or Java for the majority of their software.
Specially those whose commercial domain isn't at all related to software development.
C and C++ are usually around as library languages supporting those applications, or older applications, many of them still written in frameworks like MFC and such.
Even if Oracle would kill Java, which might happen with this kind of behavior, it will take a few generations to change to something else, specially since many people are unaware of the amount of hardware running embedded JVMs.