DEV Community

Cover image for Is Java Still Worth Learning in 2022?

Is Java Still Worth Learning in 2022?

Elliot Brenya sarfo on February 09, 2022

Java, is it worth learning today, especially with all the new emerging programming languages? I like to evaluate decisions like this by listing out...
Collapse
 
jwp profile image
John Peters

No, C# is far superior, fast, and runs everywhere. It even can become WASM. If Android didn't exist Java would have become much less popular. I programed in Java for 10 years and C# for 15. .NET is just a superior platform with the best 2 IDEs on the planet.

Collapse
 
miguelmj profile image
MiguelMJ

Companies still use Java and still need Java developers. So no matter how modern, lower maintenance or enjoyable other languages are. That fact alone makes it worth learning for a lot of people looking for a job.
Should companies migrate all their Java code to other language? I don't know. But that's not going to happen this year, so...

Collapse
 
nibelino profile image
Matteo

Also kotlin and dart... Basically all the new languages with a modern design

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Kotlin with Quarkus for web dev is extremely good too.

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Yes but dart has upper hand as compared to kotlin

Thread Thread
 
nibelino profile image
Matteo

What do you mean?

Thread Thread
 
elliot_brenya profile image
Elliot Brenya sarfo

Dart is widely used as compared to kotlin

Thread Thread
 
nibelino profile image
Matteo

I only see dart been used with flutter... But idk. Kotlin is the "substitute" of java in the android dev world

Thread Thread
 
elliot_brenya profile image
Elliot Brenya sarfo

Alright

Collapse
 
gaming_gamer profile image
Gregor-code

I think it is worth learning. When I started learning Java, I was kind of overwhelmed and thought there were way better alternatives. But now after I learned enough to create my own projects, I have a totally different view on it. I think there are a lot of programming languages that are easier and better, but the concepts I learned to use, are worth way more than the knowledge of one language. I instantly was able to understand Dart and Kotlin syntax and concepts.

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Ok

Collapse
 
noviicee profile image
Anamika

Java might be old, but I think it's still worth learning. Although I'm better at Python, but many projects still use java as their base.

Collapse
 
alekseiberezkin profile image
Aleksei Berezkin • Edited

Java is slow

Seems you've read 90s articles πŸ˜‰ Please study recent benchmarks. Java is order of magnitude faster than interpreted languages like JS or Python. Contemporary Java 17 is still very good and balanced solution for data intensive systems.

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Okay

Collapse
 
mirkoperillo profile image
mirko

Yes it is. The last versions of Java (11 and above) modernize the language.
Don't think about the "old" Java, give it a try

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Ok

Collapse
 
ibrong profile image
iBrong

bro why c#, i heard my senior recomend c#, but i not sure why!

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

C# is well organized as compared to Java

 
romeerez profile image
Roman K

You're right! I'll spend more time waiting for build because I care a lot of type correctness and I won't get any null issue to debug, and I wish it to everyone.

Thread Thread
 
elliot_brenya profile image
Elliot Brenya sarfo

You’ve a point

 
elliot_brenya profile image
Elliot Brenya sarfo

You’ve a point though

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Yhh

 
elliot_brenya profile image
Elliot Brenya sarfo

Interesting

Thread Thread
 
rxliuli profile image
rxliuli

tsc is probably one of the slowest compilers out there, but now you can try esbuild, which is written in golang and can improve performance by an order of magnitude or two.
esbuild.github.io/

Thread Thread
 
romeerez profile image
Roman K

tsc can be very fast if you configure it to use SWC, which is written in Rust and doesn't perform any type checks just as esbuild

Thread Thread
 
rxliuli profile image
rxliuli • Edited

swc is an interesting project, but it has not been proven at scale in production environments, compared to esbuild as one of the cores of vite that is used at scale and proven effective.

Also, esbuild does not check typescript types

 
elliot_brenya profile image
Elliot Brenya sarfo

Obviously but I think you didn’t read the article

Collapse
 
elliot_brenya profile image
Elliot Brenya sarfo

Ohk

Collapse
 
romeerez profile image
Roman K

JavaScript, c#, python, and Go are all better, more enjoyable

Is it really good to assign null to anything? Is it enjoyable to debug such silly mistakes?

IMO allowing string = null means a poor language design, so TypeScript and Rust are better options for me than the four you mentioned.