Even after so much threat and competitions from other programming languages, Java seems to be many programmers' favorite? Why do you think DEVs like it?
Here is a good article which can answer why to learn Java. codegym.cc/groups/posts/70-why-should-you-learn-j…
Java dev for 7 years I used Scala for 2.5 years and hated it with a passion. Java is simple and has a good eco system. The added boilerplate is tedious and annoying but makes code so easy to read and understand in the future. There are no crazy language features that have you digging through code to figure out what is going on.
As much as I love Java I hate most of the frameworks. Spring and JavaEE both seem way overkill to me. People like a lot of the newer languages because its so easy to get up and running with a minimal web server. This is also true in Java if you just pick a low level web server instead of a massive framework but few people develop in Java this way so they flock to newer languages.
Just my opinion.
besides C# it's one of the view generalists.
It's a good and solid language .... I don't use it unless a customer demands it. If you can tell me an alternative language that just needs a general problem domain knowledge that's strongly typed and is not C#, is taught at universities, uses OOP and has a libraries for almost everything do tell. :)
Personally, I do not like Java and I am pretty sure that it is not the "dev's favorite". It's more like the industry still uses it, because it's been a standard for a long time, it is stable, it has a community and lots of industry frameworks build on top of Java. Java is not a good language, but it's not bad either. But most importantly: People tend to know in what places Java is bad and they know how to handle that. You cannot get rid of Java just like that.
Also: Why should you? In what way is Java inferior to Node.JS? To Elm? To Elexir? To Go? As a corporate developer, you want to solve a problem. The solution has to be stable and has to be maintainable by anyone. It does not need to be "hip" or "hype" or "technically superior" in any way! So the best path is to choose Java, since nearly everyone knows Java and learning Java is really easy. It fits like a glove.
I think, the usage of Java will decline. Especially with the rise of languages, which are built with cross-platform in mind (I know that at least JavaScript (on Node.JS) and Rust are), Java will loose more and more developers. I am pretty sure, that Google, maybe in 15-20 years, will have to re-consider Java as the native language for Android, however it will take a lot longer than that to finally make the change to other options, which might better fit the kind of technology we will live in, then.
As one example, take Cobol. Today, no one in their right mind would write a Cobol application. However, there are still banks and other institutions, which have old Cobol programs and need people who update those programs with new requirements or translate them. Cobol is dead, but still in use. That kind of thing will happen to a lot more languages, but the transition will need decades.
David Fresko
Marketologists
Most developers pick it up as their first programming language because it's reasonably easy to learn. Since the language has an English-like syntax with minimum special characters, Java could be learned in a short time span and used to build suitable applications. I started learning java too, but in the result I understand that is it not my work, and now I'm working in https://recipes.cafe/en as a marketologists.