Because the trajectory of Java is downward when compared to the alternatives because it is getting new features slower.
Lets say I create the same app twice, one using Java and the other using .NET. In 5 years time I believe the best thing you could say is that the Java one is no worse off because the new stuff that .NET has that Java doesn't have doesn't apply to the app. And I'm struggling to come up with a scenario where the Java one would be better off.
The risk that your choice might not be good enough for the long run? That's getting into a leaky boat.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.