
Java vs javascript
Seeing the current market scenario I feel that java is losing its charm to javascript.
Every small to midscale and even some big scale project's first preference is javascript based technologies.
Other than security features what else do you think java is better than javascript?
Also let's see what the poll meter says
One interview, 1000+ job opportunities
Take a 10-min AI interview to qualify for numerous real jobs auto-matched to your profile 🔑
WHAT!? As a backend dev, all the job postings I see want Java and only Java. Maybe some of them would also accept Go. And literally none for JavaScript. The only path for JavaScript these days is full-stack.

Java has openings but most of them need 4+ exp. In nodejs you can get around with 2+ exp also .
And also once I tried searching how many job openings are for java and javascript on naukri.... I found that there were 18k jobs for javascript while only 4k for java .... See the diff.

I'm looking for openings that require ~1 yoe. Most backend focussed positions require Java and there is barely anything for nodejs. Nodejs is very popular for full stack though. The reason why javascript jobs are more than java jobs is because javascript can be used in front end as well as full stack positions while java is only used on backend. And there are far less companies offering backend only roles than frontend/full stack since most companies do not need a complicated backend.

It depends. Your use case and requirements define what you use.
Security and concurrency? Java One language uniformity and npm support? JavaScript Low level, less memory usage, concurrency, ready to use new technology? Go or Rust Pytgonic preference with MVC? Django

My point is in most of the cases javascript is able to do the job with less code . that's why java is losing its charm

I'm Frontend dev with 3 yoe. Planning to switch after few months.
Shall I focus learning Frontend in depth or start learning java spring boot?