r/JavaProgramming • • Mar 09 '25

5 Object Oriented Analysis and Design Interview Questions for Java Developers

Thumbnail
java67.com
2 Upvotes

r/JavaProgramming • • Sep 18 '25

Top 15 Java Multithreading and Concurrency Interview Questions Answers for 3 to 5 Years Experienced

Thumbnail medium.com
2 Upvotes

r/JavaProgramming • • Dec 18 '25

Master These 5 Design Patterns and Level Up Your Engineering Skills

Thumbnail
javarevisited.substack.com
2 Upvotes

r/JavaProgramming • • Aug 19 '25

Javadoc is getting a dark mode!

Thumbnail
github.com
2 Upvotes

r/JavaProgramming • • Sep 30 '26

I built a Java agent that reconstructs async causal stack traces across thread boundaries and need some feedback

2 Upvotes

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 • • Feb 09 '26

Java LLM framework with prompt templates + guaranteed JSON outputs (Oxyjen v0.3)

2 Upvotes

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 • • Jul 25 '25

Logical Operators in Java with Examples - InfitechX

Thumbnail infitechx.com
2 Upvotes

r/JavaProgramming • • Oct 26 '25

5 Must-Read Books to Master Software Architecture and System Design

Thumbnail
reactjava.substack.com
0 Upvotes

r/JavaProgramming • • Apr 25 '26

The reason you aren’t making $300k as a developer

Thumbnail
javarevisited.substack.com
2 Upvotes

r/JavaProgramming • • Oct 14 '25

Checked Exceptions Have No Place in Modern Java

0 Upvotes

Lambdas, streams, and frameworks already moved on. The language should too.

Link for the article


r/JavaProgramming • • May 24 '26

I Tried 50+ System Design Interview Courses on Udemy: Here Are My BEST 5 for 2026

Thumbnail
sqlrevisited.com
2 Upvotes

r/JavaProgramming • • Mar 08 '26

Don't guess, measure.

2 Upvotes

​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 • • Jul 02 '24

Java SimpleDateFormat Example

Post image
2 Upvotes

r/JavaProgramming • • Jun 08 '24

Goals of Spring Boot

Post image
2 Upvotes

r/JavaProgramming • • Jul 16 '24

Java Program to Multiply Two Matrices

Post image
2 Upvotes

r/JavaProgramming • • Jan 23 '25

10 Tools Java Developers Can Learn in 2025 [UPDATED]

Thumbnail
javarevisited.blogspot.com
2 Upvotes

r/JavaProgramming • • Jan 22 '25

Java Error

Post image
2 Upvotes

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 • • Jan 08 '25

Top 133 Java Interview Questions Answers for 2 to 5 Years Experienced Programmers

Thumbnail
javarevisited.blogspot.com
2 Upvotes

r/JavaProgramming • • Dec 26 '24

First Day of Programming, Daring with JaVa Eeeeeeeeee.....

2 Upvotes

Any warnings/support


r/JavaProgramming • • May 04 '24

Java String equals() Method

Post image
2 Upvotes

r/JavaProgramming • • May 17 '24

Java OOPs Concept-Abstraction

Post image
2 Upvotes

r/JavaProgramming • • May 02 '24

Returning Array from the Method

Post image
2 Upvotes

r/JavaProgramming • • May 12 '24

Java OOPs Concept-Object

Post image
2 Upvotes