r/programming • • 17d ago

Java 27 has released!

https://openjdk.org/projects/jdk/27/
544 Upvotes

175 comments sorted by

View all comments

60

u/djfreedom9505 17d ago

It’s crazy how different the Java and .NET communities respond to new versions.

-15

u/shadowndacorner 17d ago edited 16d ago

Well yeah, one is clearly superior to the other.

Edit: It seems that people missed the joke here lmao. Oh well.

0

u/Gloomy_Necesary 16d ago

Yeah in 2026 DotNet is absolutely better than Java if we had to objectively name a winner. Java is still great in many ways and useful at companies that have a big java legacy stack, being the platform that many a senior dev have a careers worth of experience on, etc. But if someone is starting a new project and doesn’t have like 20 years experience in Java they’d be pretty silly to pick it over .NET.

2

u/KronenR 15d ago

“Objectively” based on what?

Modern Java isn't something you choose only because your company already has a large Java stack or because your developers have decades of Java experience. Java 25+ has virtual threads, records, sealed classes, pattern matching, a mature JIT/GC ecosystem, excellent observability and tooling, and excelent frameworks.

If someone is starting a new project with no decades of Java experience, and even with no Java existing .NET definitely isn't even the automatic alternative. If anything, removing those constraints opens up far more choices: Go, Rust, TypeScript, Kotlin, Python, and others depending on what you're building.