Nevertheless, Java ranks within top 3 programming languages on whatever index you look!
- https://www.tiobe.com/tiobe-index/
- http://redmonk.com/sog.../2017/06/08/language-rankings-6-17/
- http://pypl.github.io/PYPL.html
- https://insights.stackoverflow.com/survey/2017
- http://www.codingdojo.com/.../9-most-in-demand.../
- https://blog.newrelic.com/.../popular-programming.../
- https://octoverse.github.com/
- https://spectrum.ieee.org/.../the-2017-top-programming...
https://blog.hackerrank.com/which-country-would-win-in.../ (Java is there first for Poland, Python for Hong Kong for example).
Oh - this article (even if older) already talks about the Java is dying tale: https://jaxenter.com/java-slippery-slope-downward-trend...
What makes Java still a very important language and still very attracting for newbies, is the wide field of usage - from desktop over web and not finished at mobile development. Especially when searching for a first language to learn which can be used to do it all.
Another fact is, that there are many open jobs (at least here in Austria) for Java Developers at the moment - so knowing Java currently helps if you need a new job...
Related posts: The programming language discussion, Java vs .net/C#, Choosing a programming language, The programming language, Popular Java myths.