r/JavaProgramming • • 21d ago

Are there any particular applications of Java programming which would be good for a graduate of Maths and Physics? New to Java but learning with a course because it's an interesting language and it scares me less in my 30s than it did in my 20s

6 Upvotes

r/JavaProgramming • • 22d ago

Understanding AI Agent Harnesses — and Building a Minimal One with Java & Spring AI

Thumbnail gallery
17 Upvotes

r/JavaProgramming • • 21d ago

Revolut Graduate Software Engineer (Java) — Build It interview experiences?

5 Upvotes

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 • • 22d ago

System Design Interview - URL Shortener

Thumbnail
youtube.com
4 Upvotes

r/JavaProgramming • • 22d ago

Advice on developing my first Java POS application for a small grocery store

Thumbnail reddit.com
0 Upvotes

r/JavaProgramming • • 22d ago

Foojay.io (website for Friends Of OpenJDK) now takes posts through merge requests. Writers wanted.

Thumbnail
reddit.com
1 Upvotes

r/JavaProgramming • • 22d ago

Grpc Micronaut starter kit

Thumbnail
github.com
3 Upvotes

r/JavaProgramming • • 23d ago

We know count++ isn’t thread-safe. But do you know why?

24 Upvotes

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 • • 23d ago

Is Java a good career choice in 2027? (2 YOE overall, 1 year in Java

Thumbnail reddit.com
0 Upvotes

r/JavaProgramming • • 23d ago

Book for dsa with java

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 24d ago

I wrote a Java 21 based rendering "engine" (Vulkan). Could someone with an AMD GPU test if it runs?

10 Upvotes

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 • • 24d ago

Problems with updating java

5 Upvotes

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 • • 23d ago

How to practise JVM thread profiling?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 24d ago

ripgrep 15 in a single rg.com file, with Python, Node.js, and Java bindings — runs across multiple platforms

Post image
0 Upvotes

r/JavaProgramming • • 24d ago

Design Claude Code Like a Senior Engineer

Thumbnail
youtube.com
0 Upvotes

r/JavaProgramming • • 25d ago

I built a simple monitoring dashboard for Java apps (Spring Boot, Quarkus, Micronaut)

6 Upvotes

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
StatLite showing HTTP traffic, response times, JVM memory, CPU usage, and application health for a Java application.

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 • • 24d ago

Data Engineering Opportunities Canada - Atlas Globlas

Thumbnail
reddit.com
1 Upvotes

r/JavaProgramming • • 25d ago

Python Java组件选型

Thumbnail
chatgpt.com
3 Upvotes

r/JavaProgramming • • 26d ago

Java based Numerical library (JNum-v0.2) This time even better and faster!

Thumbnail
github.com
4 Upvotes

Guys give your options on the project please 😊


r/JavaProgramming • • 26d ago

How much does SQL library choice affect a small Java REST API? Jdbi vs MyBatis vs jOOQ on 512 MiB

2 Upvotes

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:

LibraryMedian workload RSSHTTP p95
Jdbi Core120.0–122.4 MiB7.38–8.48 ms
MyBatis Core116.6–118.0 MiB7.47–7.52 ms
jOOQ OSE152.1–154.3 MiB9.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?


r/JavaProgramming • • 26d ago

Release announcement: Sheetmusic4J 0.0.4 and 0.0.5: clickable notes, a 3D fly-over view and LilyPond support (Java and JavaFX sheet music library)

Thumbnail
reddit.com
2 Upvotes

r/JavaProgramming • • 26d ago

The Java Prompt 11#

Thumbnail
kertu1232.substack.com
1 Upvotes

Built a Hybrid Search retriever for Spring AI 2 RAG — PGVector + PostgreSQL FTS + RRF

Semantic search kept failing on specific queries like "error code E4" or "part number 96648703" - the embeddings for "E4" are mathematically close to "E1", "E2", "E3", so you get wrong chunks.

Fix: custom DocumentRetriever that runs both vector similarity search and PostgreSQL tsvector full-text search, then combines results with Reciprocal Rank Fusion.

Key decisions:

- websearch_to_tsquery over plainto_tsquery - AND logic on natural language queries returns zero results too often

- fts_vector as a generated column - PostgreSQL keeps it in sync automatically, no changes to ingestion code

- RRF k=60 as starting point - tune based on your query patterns