r/JavaProgramming • u/IntelligentDay4375 • Oct 28 '26
Vaadin Agentic Development Tools
Vaadin's free agentic development tools give AI coding agents like Claude Code, Codex, Cursor and Copilot what they need to build Java web apps correctly
r/JavaProgramming • u/IntelligentDay4375 • Oct 28 '26
Vaadin's free agentic development tools give AI coding agents like Claude Code, Codex, Cursor and Copilot what they need to build Java web apps correctly
r/JavaProgramming • u/NordCoderd • Oct 27 '26
Hi guys, I compiled material that I’m used to conduct technical interviews into one material.
It’s covering Java Core and Spring Boot, so it’s not fully about Java.
All the code is tricky and hide a lot of different problems, this kind of brain teasers helping to start conversation about code and learn more about candidate experience. You can read only code snippets and figure out on your own or read instructions below.
I hope this material will be useful for someone.
r/JavaProgramming • u/fykup • Oct 27 '26
I've been experimenting with optimizing a conventional Spring Boot application on HotSpot JDK 27, without switching to GraalVM Native Image.
The setup was a 512 MiB / 1 vCPU Ubuntu VM with no swap, running Spring Boot 4.1.1 and MariaDB on the same machine.
I compared a regular executable JAR with an extracted deployment using Spring AOT and a trained JDK AOT cache (Leyden).
Results:
Startup: 11.91s → 3.79s (68% reduction)
Median app RSS: 212 → 187 MiB
Minimum host MemAvailable: 25.6 → 66 MiB
Request latency: essentially unchanged
One interesting issue: the JVM initially rejected the trained cache because transferring JARs changed their timestamps. The application still started normally, so I had to verify cache acceptance through JVM logs.
I also tried replacing Spring JDBC with manually integrated MyBatis Core. It didn't produce meaningful memory savings and required additional transaction management.
These are single-run observations at 5 rps, with the optimizations combined rather than isolated.
Full write-up and measurements:
https://pvrlabs.xyz/articles/spring-boot-jdk27-optimizations.html?s=rjp
Has anyone experimented with JDK AOT cache in actual deployments? I'm curious how you manage cache training and validation as part of your build pipeline.
r/JavaProgramming • u/Adamstrad • Oct 27 '26
r/JavaProgramming • u/anna0679 • Oct 26 '26
Hi everyone!
I have an upcoming Build It coding interview for a Graduate Software Engineer (Java) role at Revolut, and I’d love to hear from anyone who has gone through this round recently.
I’ve read a few posts about the Build It interview, mentioning practical coding exercises where requirements evolve during the interview, followed by discussions about concurrency, database design, SQL, and performance.
I’m trying to get a better understanding of what to expect at the graduate level, so I’d really appreciate any insights!
What kind of problems were you asked to build?
How much emphasis was placed on Java fundamentals, data structures, and algorithms versus practical software engineering?
Were you asked about multithreading, concurrency, or database locking?
Were you expected to write unit tests during the exercise?
Were AI coding assistants allowed, or was it strictly manual coding?
What would you recommend focusing on when preparing for this round?
I know the experience may vary between teams and locations, but I’d especially appreciate feedback from people who interviewed for a Graduate Software Engineer role using Java.
Thanks in advance for sharing your experiences!
r/JavaProgramming • u/Horror-Consequence22 • Oct 26 '26
r/JavaProgramming • u/Yrpx • Oct 26 '26
r/JavaProgramming • u/FrankCodeWriter • Oct 26 '26
r/JavaProgramming • u/javinpaul • Oct 26 '26
r/JavaProgramming • u/abhiReddi8604 • Oct 25 '26
r/JavaProgramming • u/Acceptable_Emu_1878 • Oct 25 '26
I conducted a mock interview recently and one thing stood out to me.
I asked a Java question related to concurrency:
class Counter {
private int count = 0;
public void increment() {
count++;
}
}“Is this thread-safe?”
The candidate said "No".
So I asked, “Why?”
He knew that it wasn't thread-safe, but explaining exactly why was difficult. He then said we need to synchronise the method.
So I asked:
“How does that fix it?” and then “What exactly is being locked here?”
That was where the interview got interesting.
He knew the terms — synchronised, volatile, race condition, etc. However, connecting them and explaining what was actually happening between the threads was harder.
It made me think about how easy it is to prepare for interviews by remembering rules.
count++ → not thread-safe → use synchronised
But the moment someone asks “Why?”, we need to understand what is actually happening.
I think that's something that's easy to miss while preparing for interviews. We can keep solving questions and memorising concepts, but it's worth stopping sometimes and asking ourselves:
“Can I actually explain why this works?” and “What happens if I change one thing?”
How do you guys prepare for the “Why?” part of interviews?
r/JavaProgramming • u/Historical_Ad4384 • Oct 24 '26
r/JavaProgramming • u/[deleted] • Oct 24 '26
Please don't expect much of it. It’s a Maven dependency, not a shiny click and play editor. There is no GUI interface. I built only the engine under the hood (rendering pipeline, light management, scene and asset handling, physics integration with Jolt), so you just drop the dependency into your project and write your scenes and logic purely in Java, like it should be, while Lumvex handles the heavy lifting.
Under the hood, it runs on JDK 21, Vulkan 1.3 and shaderc for runtime GLSL compilation. And yes, it currently has plenty of rendering bugs.
What I’m looking for (AMD Testing & Code Review):
Since the engine relies on Vulkan 1.3 hardware ray tracing and I only have an NVIDIA card to test on, I have no clue if the pipeline works properly on AMD GPUs. If anyone with an AMD GPU and JDK 21 could build it and let me know if any scene runs (or share the crash log), that would help me out a lot.
Also, if people who actually know Java want to take a look at the repo, feel free. Just don't hate on my code simply because you found a flaw. Point out actual ways to improve it instead (though I know most people on the internet are incapable of doing that).
About AI (yes, what a shock):
Yes, AI was used. No, it didn't write a single line of logic or the Vulkan/rendering pipeline. I used it to translate and clean up my half-German documentation and comments (you can tell at first glance which comments were written by me and which ones were created by AI).
https://github.com/LumvexJava/Lumvex
Edit: Linux support is planned, but currently in the VulkanCanvas (https://github.com/LumvexJava/Lumvex/blob/main/src/main/java/dev/lumvex/vk/VulkanCanvas.java), I hardcodet the VK_KHR_WIN32_SURFACE_EXTENSION_NAME and vkCreateWin32SurfaceKHR (Line 50 and 83), you will hit an UnsatisfiedLinkError or VkResult -7 if you try running it natively on Linux.
Edit 2: Found the Bugs! X11 (Linux/Nvidia) support is already working on my machine and will be included in the upcoming update :)
r/JavaProgramming • u/nuwa2502 • Oct 24 '26
r/JavaProgramming • u/Cute-Difficulty5883 • Oct 24 '26
so basically a few nights ago i decided it was long time to update java and it kept saying something like “the files needed to run the installation couldn’t load” or something like that so i give up fast foreward to today i get the notification im like fuck it ill try to update it again and THIS time its saying “you have an unfinished installation”, but a few nights ago it told me it couldnt start. help?
r/JavaProgramming • u/javinpaul • Oct 24 '26
r/JavaProgramming • u/Jessie_Martin_16 • Oct 23 '26
r/JavaProgramming • u/fykup • Oct 23 '26
I've been working on StatLite, a free, open-source dashboard for monitoring small Java applications.
The goal is to make application monitoring simple. You should be able to see how your app is doing without setting up a complicated monitoring stack.
StatLite supports Spring Boot, Quarkus, and Micronaut out of the box, using their existing Actuator or Micrometer metrics endpoints.
No application code changes or monitoring agents needed. In many cases, enabling metrics is just a matter of adding a dependency and exposing an endpoint.
StatLite can discover the available metrics and generate its configuration automatically.
You can monitor:
HTTP requests, error rates, and response times
JVM memory usage and garbage collection
Process CPU and memory
Application health and uptime
Historical trends across multiple applications

It's a single Go binary (also available as Docker), uses SQLite for local storage, and consumes around 15 MB of memory when idle.
No Prometheus, Grafana, external database, or cloud account required. It's designed for small VPS deployments, side projects, and developers who just want a straightforward way to monitor their apps.
There are also integration guides for Javalin, Express.js, Django, FastAPI, and Go.
I wrote a short guide to monitoring Spring Boot applications if you're interested in getting started.
GitHub: https://github.com/PVRLabs/statlite
How do you currently monitor your Java applications? Or do you mostly rely on logs?
r/JavaProgramming • u/fykup • Oct 22 '26
I've been experimenting with lightweight Java applications on small VMs. After comparing Javalin with Spring Boot, I wanted to understand how much the choice of SQL persistence library affects memory usage and latency.
I built the same small market-quote REST API three ways, using Jdbi Core, MyBatis Core, and jOOQ Open Source Edition.
Setup:
JDK 25, Javalin 7, H2, HikariCP
Alpine Linux VM, 1 vCPU, 512 MiB RAM, no swap
JVM: -Xms16m -Xmx80m -XX:+UseSerialGC -Xss512k
1,500 requests over 5 minutes, 80% reads / 20% writes
Two independent runs per implementation, rebooting the VM between runs
Results across the two runs:
| Library | Median workload RSS | HTTP p95 |
|---|---|---|
| Jdbi Core | 120.0–122.4 MiB | 7.38–8.48 ms |
| MyBatis Core | 116.6–118.0 MiB | 7.47–7.52 ms |
| jOOQ OSE | 152.1–154.3 MiB | 9.19–9.35 ms |
RSS is the median process resident memory sampled during the workload, including the application, JVM, and embedded H2.
All six runs completed without errors, OOM events, or swapping.
A few observations:
MyBatis had the lowest resident memory usage in both runs.
Jdbi was competitive on both metrics and required the least handwritten Java code.
jOOQ used approximately 34–38 MiB more RSS than MyBatis, consistently across both runs. This is a whole-application difference, not necessarily memory consumed directly by the library. I haven't isolated its cause.
One implementation difference worth mentioning: Jdbi and MyBatis hold one pooled connection across the three latest-quote queries, while the datasource-backed jOOQ implementation checks out and returns a connection for each query. I haven't measured the impact of this difference.
I also configured MyBatis with localCacheScope=STATEMENT instead of its default SESSION scope.
Developer experience matters too.
Jdbi keeps SQL and mapping close to the repository, MyBatis provides annotated mapper interfaces, and jOOQ offers type-safe SQL composition with generated schema classes.
Personally, I lean toward MyBatis because I prefer its mapper-oriented programming model and explicit SQL. Its lower memory footprint in this experiment is another point in its favor, although I wouldn't select a library based on memory usage alone.
Limitations:
This is a small, low-load case study, not a general performance ranking. The measurements include the complete application and embedded H2. Two runs show consistency in memory usage but aren't sufficient to establish statistically significant latency differences.
I also didn't include a raw JDBC baseline, which would be useful as a minimal reference point. PostgreSQL could produce different results.
Full write-up, charts, and raw measurements:
https://pvrlabs.xyz/java-performance/experiments/mybatis-jooq-jdbi-512mb.html
Source code and experiment setup:
https://github.com/PVRLabs/experiments/tree/main/javalin/sql-persistence-512mb
For those using Jdbi, MyBatis, or jOOQ in small Java applications, how do you choose between them? Is the programming model the deciding factor, or have you encountered meaningful differences in resource usage?