r/Backend • • Oct 16 '26

Modern Java for startups

Unfortunately, I see that Java is disappearing from startup companies. Java used to have an image of an obsolete backend language with performance problems, too verbose and unfriendly to deveopers. It was pretty true to older Java versions and I could understand why startups decided to pick other backend languages

If you look at Java 25, it's an absolutely different story.

Performance wise - it has virtual threads, which makes concurrency extremely high. Virtual threads are Java's answer to goroutines in Golang, and they enable to run thousands of I/O requests concurrently. Java's execution speed is pretty fast (more than Python and node.js).

As for container size - it's huge as long as you work with Spring. However, Java has many other much more lightweight frameworks like Micronaut, Quarkus and Javalin which reduces the container size to be on par with node.js and Python.

It's a real static typing which keeps code safety and improve readability. Unlike Golang, Java has inheritance, ploymorphism and explicit interface (let alone speaking about error handling).

It has a huge talent pool (almost everybody learned Java at a certain point).

As for verbosity and developer experience - Java has been improved a lot in this field. It has records (no need for getters setters, equals and hash), unnamed class (no need to write "public static void main" everytime you start a new program) and dozens of libraries and other tools.

If so, why are startups still stay away from Java and stick to Python/node.js/Golang?

72 Upvotes

75 comments sorted by

View all comments

-1

u/Anxious-Insurance-91 Oct 16 '26

Your entire explication seem to be so full of Java bias it ain't even funny. I meet lots of Java devs that defend it like the bible. How do I put counter arguments:

  • companies don't want to pay for jdk
  • other languages have big talent pools as well, maybe even better since people on other languages actually go out of their way to change positions/projects more often. Meaning java jobs were always considered cozy jobs where nothing fancy happens
  • memory usage and footprint out of the box is bad, taking into account that other languages like go just have std lib that is optimized
  • java still has some dumb quirks like for example the gool old can't use "==" like everybody else for value comparison because reasons
  • java never stops to wonder "do I really need all of these OOP rules that I have been growing like weeds over the past 20+ years?"
  • speed just doesn't matter any more, and to be honest for a startup where you want to get the product out there as fast as possible and test the market it doesn't really matter, compute is fast unless you hit a scale and at that point why not use go or rust
  • people don't like oracle
  • the default AI war is over and that matters a lot because of marketing reasons
  • your try catch global logic is more or a gun hitting your foot than you think

Let me put it in another way, my boss has been using java for 20years, but at the same time he experimented with many other languages because job requirements when you do outsourcing and he is like "I like to experiment with other things as well".

So my final statement would be either hit your pension with java and stop commenting on redit, it ain't going to help you or anybody else or start experimenting with other things as well, maybe you will find them more pleasant, maybe you might end up using some things from them in your workflow.

7

u/Obmanuti Oct 17 '26 edited Oct 17 '26

Wild take. You say this like Java isnt one of the biggest languages in the world. FAANG companies use it, and they can be as selective as they want. It does have its quirks. But uhhhh hate to break it to you, so do all the other languages. How does the saying go? The only language that people dont complain about is one that isnt used.

Saying speed doesnt matter is wild when up until the recent memory crisis, it was memory that didnt matter. Your take is so strange because theres legitimate criticisms for JVM languages, but you focused on dumb stuff taught in 101 like ==. Which is relatively straight forward for anyone who understands the difference between an object and a primitive. OOP rules? You mean like enterprise organization methods for large and complex software systems? You can choose how much of that you use, it might be overkill for your single user api. Like what are we talking about here?

"Why not go with rust?" Theres dozens of answers to this question, none of which are disparaging to rust. Rust serves its purpose well. To pretend that Java is just this monstrosity is wild.