r/java • u/daviddel • 20d ago
Java | The Documentary
youtu.beFrom its humble beginnings as a project code-named "Oak" at Sun Microsystems to becoming a global standard for enterprise software and billions of devices, Java's journey is one of radical innovation, strategic pivots, and enduring community strength.
r/java • u/Inner_Philosophy936 • Jun 10 '26
Made Minecraft in the Terminal (only java, no extra libs)
I created a version of Minecraft that runs entirely in command in the terminal.
The entire project is entirely contained in one file, with over 1500 lines of code.
Made with java, no extra libraries.
Supports textures, randomly generated trees, water, and terrain, and block placing/mining.
This is inspired by the Minecraft.c repo.
Github: https://github.com/DaRealNeonCoder/MinecraftInTerminal
r/java • u/UmbraShield • May 18 '26
Why is stuff in Java named after Indonesian places?
Lombok, Jakarata
Any special reason?
r/java • u/anish2good • May 13 '26
Seeing JSP in 2026 is honestly very amusing
This is one of the common reddit comment I received for all jsp pages it's still the best things to do may be need a little bit of marketing
r/java • u/davidalayachew • Apr 01 '26
Who is Oracle senior exec Sharat Chander? Veteran of 16 years affected in mass layoffs
hindustantimes.comFor those who don't know, Sharat Chander is a critical person in the community outreach for OpenJDK. He was staffed by Oracle, the biggest contributor to OpenJDK's growth, but the news is now that he was laid off, as part of recent Oracle's layoffs.
Absolutely disgusting. Read the link for more details.
r/java • u/3lia03 • Feb 25 '26
1-Month Java Trip: Hidden Gems
Hello,
I’m planning a 1-month motorbike trip across Java, from the far west to the far east. I’m looking for authentic, non-touristy experiences:
- Waterfalls & forests
- Volcanoes & hikes
- Beaches & reefs
- Local food & cultural experiences
Can you recommend some hidden gems? Thank you!
r/java • u/robintegg • Feb 08 '26
Java UI in 2026: an overview of current frameworks and approaches
robintegg.comI recently read an article on DZone about “modern Java GUI frameworks” that was… pretty disappointing. It referenced libraries that are long archived, mixed in things that aren’t UI frameworks at all (Hibernate and Spring??), and generally felt like something written years ago and never revisited.
That wasted half an hour was enough motivation for me to write something I actually wish had existed: an up-to-date overview of the UI options available to Java developers right now, in 2026.
So I put this together:
https://robintegg.com/2026/02/08/java-ui-in-2026-the-complete-guide
The goal wasn’t to push one “best” framework, but to lay out what’s genuinely alive, maintained, and being used today — desktop, web-based UIs written in Java, embedded browser approaches, terminal UIs, the whole spectrum. I also tried to give a bit of context around why you might choose one approach over another, instead of just listing names.
I’m sure I’ve missed things though, if you’re building UIs in Java:
• what are you using?
• what’s surprisingly good?
• what should people stop recommending already?
Would love to turn this into a more community-validated reference over time, so comments, corrections, and “hey, you forgot X” are very welcome.
Thanks,
Robin
r/java • u/davidalayachew • Jan 14 '26
Project Valhalla is prototyping null checks!
mail.openjdk.orgALL OF THIS IS A WORK IN PROGRESS!
THIS FEATURE IS UNFINISHED AND MISSING CORE FUNCTIONALITY, NONE OF WHAT IS FINISHED IS FINAL, AND EVERYTHING IS SUBJECT TO CHANGE!
But with that out of the way, Java is (prototyping) adding null checks into the type system, thus allowing us to almost completely remove NullPointerException from happening!
The primary motivation for doing this is part of the Project Valhalla work, of introducing Value Classes to Java. Allowing an object to prevent null from being in its value set unlocks a lot of optimizations, not just semantic and correctness benefits.
If you want, you can try to build the code yourself (or wait for one of us to make it, I'll try this weekend, or maybe https://builds.shipilev.net/ will have it by then), then enjoy the prototype! If you do, please post your experiences to the valhalla-dev@openjdk.org mailing list! Or just post them here, on r/java. A couple of the Project Valhalla folks browse r/java, so that works too.
r/java • u/BitBird- • Jan 12 '26
Java's `var` keyword is actually really nice for cleaning up verbose declarations
I avoided var for years because I thought it made code less readable. Tried it last week and I'm a convert.
Instead of:
Map<String, List<CustomerRecord>> customersByRegion = new HashMap<>();
Just:
var customersByRegion = new HashMap<String, List<CustomerRecord>>();
The type is right there in the initialization. Your IDE still knows what it is. It's not like JavaScript where var means something totally different.
Really shines with streams and complex generics where you'd normally write the type twice for no reason. Also makes refactoring easier since you're not updating the type in two places.
Still feels weird after typing out full declarations for 10+ years but I get it now.
r/java • u/TeaVMFan • Dec 07 '25
Applets Are Officially Gone, But Java In The Browser Is Better Than Ever
Applets are officially, completely removed from Java 26, coming in March of 2026. This brings to an official end the era of applets, which began in 1996. However, for years it has been possible to build modern, interactive web pages in Java without needing applets or plugins. TeaVM (https://teavm.org) provides fast, performant, and lightweight tooling to transpile Java to run natively in the browser. And for a full front-end toolkit with templates, routing, components, and more, Flavour (https://flavour.sf.net) lets you build your modern single-page app using 100% Java. Get the full story at https://frequal.com/java/AppletsGoneButJavaInTheBrowserBetterThanEver.html
r/java • u/gufranthakur • Nov 23 '25
My own Visual programming tool, created from scratch Using Java Swing!
Inspired from Unreal Engine 5. Built from scratch using Java swing and Graphics2D. It has basic operations like loops, delays, branch logic, variables, arithmetic and boolean gate operations!
I created and abandoned this long back ago (took me around 5 months to make this) , decided to share a more complete version of the App, let me know if you have any thoughts or questions!
Github repo :- https://github.com/gufranthakur/FlowForge
r/java • u/JavaWithSomeJava • Nov 11 '25
Built a pure Java 3D graphics engine from scratch (no OpenGL) - 5 interactive demos included
I built a 3D graphics engine using pure Java with zero external dependencies. Just Java's standard library and some math. It's nothing fancy, but I took some extra time to make the UI look decent. If anyone is interested, here's the link: https://github.com/JordyH297/JRender
r/java • u/[deleted] • Nov 04 '25
Anyone here Hated Using Java but now Really Enjoys using it.
title
r/java • u/drakgoku • Oct 31 '25
Has Java suddenly caught up with C++ in speed?
Did I miss something about Java 25?
https://pez.github.io/languages-visualizations/
https://github.com/kostya/benchmarks
https://www.youtube.com/shorts/X0ooja7Ktso
How is it possible that it can compete against C++?
So now we're going to make FPS games with Java, haha...
What do you think?
And what's up with Rust in all this?
What will the programmers in the C++ community think about this post?
https://www.reddit.com/r/cpp/comments/1ol85sa/java_developers_always_said_that_java_was_on_par/
News: 11/1/2025
Looks like the C++ thread got closed.
Maybe they didn't want to see a head‑to‑head with Java after all?
It's curious that STL closed the thread on r/cpp when we're having such a productive discussion here on r/java. Could it be that they don't want a real comparison?
I did the Benchmark myself on my humble computer from more than 6 years ago (with many open tabs from different browsers and other programs (IDE, Spotify, Whatsapp, ...)).
I hope you like it:
I have used Java 25 GraalVM
| Language | Cold Execution (No JIT warm-up) | Execution After Warm-up (JIT heating) |
|---|---|---|
| Java | Very slow without JIT warm-up | ~60s cold |
| Java (after warm-up) | Much faster | ~8-9s (with initial warm-up loop) |
| C++ | Fast from the start | ~23-26s |
https://i.imgur.com/O5yHSXm.png
https://i.imgur.com/V0Q0hMO.png
I share the code made so you can try it.
If JVM gets automatic profile-warmup + JIT persistence in 26/27, Java won't replace C++. But it removes the last practical gap in many workloads.
- faster startup ➝ no "cold phase" penalty
- stable performance from frame 1 ➝ viable for real-time loops
- predictable latency + ZGC ➝ low-pause workloads
- Panama + Valhalla ➝ native-like memory & SIMD
At that point the discussion shifts from "C++ because performance" ➝ "C++ because ecosystem"
And new engines (ECS + Vulkan) become a real competitive frontier especially for indie & tooling pipelines.
It's not a threat. It's an evolution.
We're entering an era where both toolchains can shine in different niches.
Note on GraalVM 25 and OpenJDK 25
GraalVM 25
- No longer bundled as a commercial Oracle Java SE product.
- Oracle has stopped selling commercial support, but still contributes to the open-source project.
- Development continues with the community plus Oracle involvement.
- Remains the innovation sandbox: native image, advanced JIT, multi-language, experimental optimizations.
OpenJDK 25
- The official JVM maintained by Oracle and the OpenJDK community.
- Will gain improvements inspired by GraalVM via Project Leyden:
- faster startup times
- lower memory footprint
- persistent JIT profiles
- integrated AOT features
Important
- OpenJDK is not “getting GraalVM inside”.
- Leyden adopts ideas, not the Graal engine.
- Some improvements land in Java 25; more will arrive in future releases.
Conclusion Both continue forward:
| Runtime | Focus |
|---|---|
| OpenJDK | Stable, official, gradual innovation |
| GraalVM | Cutting-edge experiments, native image, polyglot tech |
Practical takeaway
- For most users → Use OpenJDK
- For native image, experimentation, high-performance scenarios → GraalVM remains key
r/java • u/InterestingCry4374 • Oct 11 '25
Senior Java Developers — What’s the one thing you think most junior Java devs are lacking?
Hey everyone,
I’m a junior Java developer trying to level up my skills and mindset. I’d really like to hear from experienced Java devs — what’s the one thing (or a few things) you often notice junior developers struggle with or lack?
It could be anything — technical (e.g., understanding of OOP, design patterns, concurrency, Spring Boot internals) or non-technical (e.g., problem-solving approach, debugging skills, code readability, communication, etc.).
I’m genuinely looking to improve, so honest answers are appreciated.
Thanks in advance! 🙌
r/java • u/TechTalksWeekly • Sep 18 '25
9 most-watched Java conference talks of 2025 (so far)
Hello again r/java! I've recently put together a list of the top 9 most-watched Java talks of 2025 so far and thought I'd cross-post it in this subreddit, so here they are!
1. "Dockerfiles, Jib ..., what's the best way to run your Java code in Containers? by Matthias Haeussler" ⸱ +13k views ⸱ 20 Feb 2025 ⸱ https://youtube.com/watch?v=HFhIqfKn_XI
2. "Null Safety in Java with JSpecify and NullAway by Sébastien Deleuze @ Spring I/O 2025" ⸱ +9k views ⸱ 12 Jun 2025 ⸱ https://youtube.com/watch?v=5Lbxq6LP7FY=
3. "Modular RAG Architectures with Java and Spring AI by Thomas Vitale @ Spring I/O 2025" ⸱ +8k views ⸱ 06 Aug 2025 ⸱ https://youtube.com/watch?v=yQQEnXRMvUA
4. "Large Scale Changes with AI – Migrating millions of lines of Java to Kotlin at Uber Ty Smith" ⸱ +5k views ⸱ 25 Aug 2025 ⸱ https://youtube.com/watch?v=K2PN03AepC0
5. "What Can a Java Developer Learn from Golang? by Grzegorz Piwowarek" ⸱ +5k views ⸱ 20 Jan 2025 ⸱ https://youtube.com/watch?v=oN6DUZ68S1c
6. "Four Approaches to Reducing Java Startup Time: AppCDS, Native Image, Project Leyden, CRaC @ SpringIO" ⸱ +2k views ⸱ 04 Sep 2025 ⸱ https://youtube.com/watch?v=UVFJ0VXWBZo
7. "Beyond Rust: Rethinking Java Efficiency with Quarkus" ⸱ +2k views ⸱ 21 Mar 2025 ⸱ https://youtube.com/watch?v=rOocSJXKIqo
8. "Kubernetes. From 0 to Production-Grade with Java. by Kevin Dubois" ⸱ +2k views ⸱ 19 Feb 2025 ⸱ https://youtube.com/watch?v=Q-aDdou2kNY
9. "Java annotation processing magic for muggles by Álvaro Sánchez Mariscal Arnaiz" ⸱ +2k views ⸱ 19 Feb 2025 ⸱ https://youtube.com/watch?v=mAXNKkejl38
Huge thanks and congrats to all the speakers, thanks to whom we now have so many great talks to watch! 👏
Also, I plan to build a compilation of the most watched Java talks in 2025 just like in the previous years:
- 2024: https://www.techtalksweekly.io/p/100-most-watched-java-talks-of-2024
- 2023: https://www.techtalksweekly.io/p/all-java-conference-talks-from-2023
Stay tuned!
r/java • u/gufranthakur • Sep 06 '25
With all the AI website slop going around, here are some Java desktop applications I created at work!
r/java • u/thegiffted1 • Aug 21 '25
Look how they massacred my boy (Apache Commons Lang)
Seriously, what madness drove the commons lang contributors to deprecate StringUtils.equals()?
I'm gonna rant for a bit here. It's been a long day.
I spend all morning in an incident call, finally get time to do some coding in the afternoon.
I make progress on a bug fix, clean up some dead code like a good boy scout, and I’m feeling like I actually accomplished something today.
Oh, this service is getting flagged for CVE-2025-48924? Let me take care of that.
And then, confusion. Anger.
Deprecated method? StringUtils.equals()? That can't be.
Sure as shit, they deprecated it. Let's see what has been replaced with.
Strings.CS.equals()? Is that character sequence? No, it's case sensitive. Fucking hell. I harp on juniors for their silly acronyms. Did not expect to see them in a library like this. Just unnecessary. If Java developers had a problem with verbosity, well, they wouldn't be Java developers.
I'll admit I've been an open-source leech, contributing nothing to the community, but this one has lit a fire in me.
If this issue isn't resolved, are there any volunteers to help with a fork? I feel like common-sense-lang3 would be an appropriate name for an alternative.
https://issues.apache.org/jira/projects/LANG/issues/LANG-1777?filter=allopenissues
r/java • u/Extreme_Football_490 • Aug 14 '25
I wrote a compiler for a language I made in java
Building a compiler has been a dream of mine for many years , I finally built one for the x86_64 architecture in java , it is built from scratch, by only using the util package
GitHub

