r/learnjava • u/bonniefan20 • Apr 18 '21
Why is Java still the third most in demand programming language?
I understand why Python & Javascript are the most in demand at this moment, but why is Java still in demand? other than android development, why is Java still in use when there are much better alternatives?
13
Apr 18 '21 edited Apr 18 '21
Java is used heavily for server side programming, and continues to be one of the most popular server side programming languages for a very long time.
The main reason for that is the JVM (Java Virtual Machine). The Java compiler writes Java bytecodes, and any OS/hardware for which a JVM is available can run the Java bytecodes. This means you can develop your application on Windows and run your application on Linux.
Also, the Java platform basically replicates everything you would need for a server side application. The first letter of the LAMP stack is "Linux", which basically means you are dependent on the OS. Java applications connect to the database using JDBC, send mail using JavaMail and run on Java application servers. Whether this runs on Windows or Linux, it doesn't matter to Java.
Java has a vast open-source ecosystem. For just about any feature you could want, there is an open source library for it.
Also, because the JVM runs Java bytecodes (and not the Java programming language), there are languages like Scala, Clojure and Kotlin which compile to Java bytecodes and run on the JVM. And code written in these languages will work just as well with already existing Java code.
-4
u/xilong89 Apr 18 '21
Kind of missing the point here. Most Apache products are written in Java or Scala but have Python API's. Since Python is the up and coming language or servers and data, having someone on the team that can understand Java errors is important and time saving. Just my opinion as a long time data engineer; you just realize that most software engineers should've retired about 10 years ago
1
Apr 19 '21
I think you missed the point. The question was why is Java still so much in demand. The demand of Python and JS are taken as a given.
7
3
u/Fury9999 Apr 19 '21
A lot of reasons, but imo the biggest has been how slow moving large enterprises are. Java remains near the top simply because it is near the top. There are tons of companies just like mine that have decades of java baked in to the company, and that creates a "java culture". Java has been helping us rake in biliions for years and there is simply no reason to move away from it once the cost benefit analysis is complete. I personally am fine with that. It creates a level of tech stack stability that is just great for people who don't want to spend their off hours learning the latest and greatest. It took me a while to realize that is valuable, but I see it now.
2
u/aryehof Apr 21 '21
Because those “much better alternatives” aren’t really “much better alternatives” for much of software development. Your view of what constitutes software development is likely a particularly narrow one based upon your question.
10
18
u/[deleted] Apr 18 '21 edited Apr 19 '21
Getting a little bored of posts on this theme. I guess if you’ve only learnt via the internet you’re going to think only python and JavaScript exist.
Java is a perfectly good language and has wide range of applications on the server and client.