DEV Community

Cover image for Java vs JavaScript. Key differences and similarities

Java vs JavaScript. Key differences and similarities

Coderslang: Become a Software Engineer on May 30, 2021

The software programming world has progressed rapidly over time and has a lot of programming languages to offer. You might have heard about program...
Collapse
 
leoloopy profile image
Leo • Edited

Nice write-up.
My time learning JS as a complete beginner was hell..lots of confusing concept, got even more mindbending when I was learning asynchronous JavaScript, with all this experienced I've had I don't see myself learning a language that uses 3-4 lines in printing "Hello world", probably because of my laziness 😁. Good luck with y'all struggling to get a hold of it 🤞

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

JS is way easier to get started when compared to Java.

Collapse
 
devdufutur profile image
Rudy Nappée • Edited

Browser Compatibility: Both languages can run on a browser.

Really ?

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

Well, of course JS is native to all modern web browsers, but Java could be enabled as well 👉 details from java.com

Collapse
 
devdufutur profile image
Rudy Nappée

If you think applets, they are deprecated since Jdk 9 and removed in Jdk 11.

Thread Thread
 
coderslang profile image
Coderslang: Become a Software Engineer

I know projects that still run on JDK 5. Enterprise is hard.

Thread Thread
 
devdufutur profile image
Rudy Nappée

You can control the jdk version on your server, but you can't force your users installing an outdated version.

Collapse
 
reergymerej profile image
ᴙɘɘᴙgYmɘᴙɘj

My favorite quote on the subject

Java is to JavaScript as car is to carpet.

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

Absolutely 😂. But if you're just starting out and choosing the first programming language to learn the terminology is quite confusing.

Collapse
 
beendra profile image
Alexandra

Great write up!

Collapse
 
coderslang profile image
Coderslang: Become a Software Engineer

Thank you 🙏