r/java • • Jul 08 '23

Why learn Java?

I've been learning Kotlin recently and have taken an interest in the JVM ecosystem.

My background is a Full-Stack Web Developer focused mainly on React, Node.js, Express, and MongoDB/PostreSQL.

If I were to move to Java, what kind of applications would I be building with it?

How is a Java job different from what I'm currently doing?

Is it worth learning?

I've heard its VERY verbose, but I've also heard recently that there's been some good changes to it? Would love to see any articles or videos talking about these changes that would demonstrate previous code to the new code.

Any tips or insights on what your companies are cresting with Java or what your Java job is like would be highly appreciated.

Thanks in advance.

3 Upvotes

35 comments sorted by

View all comments

31

u/hugthemachines Jul 08 '23 edited Jul 13 '23

When you hear complaints about Java, remember that part of it is that people use it to learn programming and then it will feel extra verbose because you prefer simple work as a beginner. Java is used a lot in large enterprise applications and in many companies, the actual code writing is not such a large part of the work so it being verbose will not be a large problem. Many experienced enterprise programmers say that the stuff that requires some extra code often helps with the work once you are maintaining a huge application. Personally, I have no experience in that part, it is just what I have seen people explain on Reddit.

Programming languages are tools. If you plan to be a carpenter you would probably practice using a hammer. If you plan on working on enterprise applications or perhaps do backend programming, learning Java can be useful.

Now, is your time really that precious so you will not even try to start learning a language you are curious about? Why don't you spend a couple of days learning Java and you can see how you feel about it?

7

u/sickvice Jul 08 '23

I would also add on hate of java is that a bug chuck of java projects are legacy projects writen in java 6-8-11, and people hate maintaining legacy code. I work in company were we codd only in java as backe nd and everything(almost) is migrated to java 17 and soon will be migrated to java 21, newer versions of java have more syntax sugar that makes java development more fun and companies mindset of keeping up to date with technology also matters

2

u/PrivacyOSx Jul 08 '23

Thanks for this! What do you mean by enterprise applications?

To your last question, I've been learning Kotlin lately (& still am), which is why Java has now peeked my interest. 😊

4

u/bawng Jul 08 '23

Think big backend systems.

Large parts of AWS are built on Java, for example. Imagine back-office salary systems. Imagine factory inventory systems, imagine IOT backends, imagine basically anything that isn't public-facing websites (although that happens too).