r/JavaProgramming • u/javinpaul • Mar 09 '25
r/JavaProgramming • u/javinpaul • Sep 18 '25
Top 15 Java Multithreading and Concurrency Interview Questions Answers for 3 to 5 Years Experienced
medium.comr/JavaProgramming • u/javinpaul • Dec 18 '25
Master These 5 Design Patterns and Level Up Your Engineering Skills
r/JavaProgramming • u/davidalayachew • Aug 19 '25
Javadoc is getting a dark mode!
r/JavaProgramming • u/WaferConsistent6732 • Sep 30 '26
I built a Java agent that reconstructs async causal stack traces across thread boundaries and need some feedback
Hello Everyone, I built ariadne. It's a Java agent that attaches the async call chain to the exception as a suppressed entry, with no code changes. It supports ExecutorService, CompletableFuture, ForkJoinPool, Reactor and RxJava.
Overhead is very small: ~1 µs per CompletableFuture pipeline in the default mode.
It doesn't replace OpenTelemetry. It works in-process, with no infrastructure needed.
Currently it is on version v0.1.0-alpha.3, not production-hardened yet, beacuse I need sm feedback first so I know this is worth it, especially on OSGi and Kotlin coroutines.
GitHub: https://github.com/AfonsoPaiva/ARIADNE
A star helps if you find it useful 🙏
This post was written by someone called Afonso Paiva from Portugal
r/JavaProgramming • u/supremeO11 • Feb 09 '26
Java LLM framework with prompt templates + guaranteed JSON outputs (Oxyjen v0.3)
Hey everyone,
I’ve been working on a small open-source Java framework called Oxyjen, and just shipped v0.3, focused on two things:
Prompt Intelligence (reusable prompt templates with variables)
Structured Outputs (guaranteed JSON from LLMs using schemas + automatic retries)
The idea was simple: in most Java LLM setups, everything is still strings. You build prompt, you run it then use regex to parse. I wanted something closer to contracts:
define what you expect -> enforce it -> retry automatically if the model breaks it.
A small end to end example using what’s in v0.3:
// Prompt
PromptTemplate prompt = PromptTemplate.of(
"Extract name and age from: {{text}}",
Variable.required("text")
);
// Schema
JSONSchema schema = JSONSchema.object()
.property("name", PropertySchema.string("Name"))
.property("age", PropertySchema.number("Age"))
.required("name","age")
.build();
// Node with schema enforcement
SchemaNode node = SchemaNode.builder()
.model("gpt-4o-mini")
.schema(schema)
.build();
// Run
String p = prompt.render(
"text", "Alice is 30 years old"
);
String json = node.process(p, new NodeContext());
System.out.println(json);
//{"name":"Alice","age":30}What v0.3 currently provides:
PromptTemplate + required/optional variables
JSONSchema (string / number / boolean / enum + required fields)
SchemaValidator with field level errors
SchemaEnforcer(retry until valid json)
SchemaNode (drop into a graph)
Retry + exponential/fixed backoff + jitter
Timeout enforcement on model calls
The goal is reliable, contract based LLM pipelines in Java.
v0.3 docs: https://github.com/11divyansh/OxyJen/blob/main/docs/v0.3.md
Oxyjen: https://github.com/11divyansh/OxyJen
Feedback around APIs and design, from java devs is especially welcome If interested, i would love to have feedbacks and contributions, PRs and issues
v0.1 and v0.2 already out
Thanks for reading!
r/JavaProgramming • u/Unlikely-Cherry803 • Jul 25 '25
Logical Operators in Java with Examples - InfitechX
infitechx.comr/JavaProgramming • u/javinpaul • Oct 26 '25
5 Must-Read Books to Master Software Architecture and System Design
r/JavaProgramming • u/javinpaul • Apr 25 '26
The reason you aren’t making $300k as a developer
r/JavaProgramming • u/iaashish • Oct 14 '25
Checked Exceptions Have No Place in Modern Java
Lambdas, streams, and frameworks already moved on. The language should too.
r/JavaProgramming • u/javinpaul • May 24 '26
I Tried 50+ System Design Interview Courses on Udemy: Here Are My BEST 5 for 2026
r/JavaProgramming • u/[deleted] • Mar 08 '26
Don't guess, measure.
I built a project to truly understand what happens inside the JVM when pushed to the limit.
The goal wasn't just "working code," but a deep understanding of memory utilization, CPU cycles, and runtime behavior.
The task: Scanning a log file of one million lines and counting errors per hour.
The process was divided into 4 versions, starting from the most naive implementation to optimization at the Bytecode and Assembly levels.
At each stage, I identified a specific bottleneck and improved it for the next version.
The tools I used:
JMH: For accurate micro-benchmarking while neutralizing Warmup biases.
JITWatch: For analyzing C2 Compiler decisions and examining the final Assembly.
The results:
I started with a standard implementation running at 872ms with a significant load on the GC, and ended with an optimal implementation running at 78ms with 0 allocations. (On a limited hardware environment, which emphasizes the execution efficiency).
To keep the code readable and focused on single-core performance, I chose to work with only one thread. The difference in performance stems solely from improving code efficiency and adapting it to the JVM architecture.
You are welcome to view the process, the measurement documentation, and the source code on GitHub:
https://github.com/Yosefnago/java-deep-dive
#Java #JVM #PerformanceTuning #BackendDevelopment #SoftwareEngineering #CleanCode #JIT #LowLatency #SoftwareArchitecture #DeepDive #CodingLife #JavaDeveloper #TechWriting
r/JavaProgramming • u/javinpaul • Jan 23 '25
10 Tools Java Developers Can Learn in 2025 [UPDATED]
r/JavaProgramming • u/Bulky_Worldliness_32 • Jan 22 '25
Java Error
So I downloaded Java so I could play OptiFine on Minecraft but when I try to install Java I get this error that is ‘)’ I don’t know what what that means or if I can fix it and how do I fix it?
r/JavaProgramming • u/javinpaul • Jan 08 '25
Top 133 Java Interview Questions Answers for 2 to 5 Years Experienced Programmers
r/JavaProgramming • u/niceFrog1900 • Dec 26 '24
First Day of Programming, Daring with JaVa Eeeeeeeeee.....
Any warnings/support