r/JavaProgramming • • Mar 12 '26

runtime jvm analysis tool i made

2 Upvotes

hope this can be of interest to some of you, more coming soon :) i found it really fun to make and ill be making more updates soon like making a gui and stuff for it. https://github.com/awrped/splinter


r/JavaProgramming • • Sep 24 '25

Java Enum Tutorial: 10 Examples of Enum in Java

Thumbnail
javarevisited.blogspot.com
0 Upvotes

r/JavaProgramming • • Oct 12 '26

Jev made typed decisions popular, Laya made them open source, but Java was missing. So I had Claude help me build laya-java (Maven Central, Spring Boot starter, open source)

Thumbnail
reddit.com
1 Upvotes

r/JavaProgramming • • Oct 31 '25

I want to learn java guys đŸ€ŻđŸ˜±

Thumbnail reddit.com
0 Upvotes

r/JavaProgramming • • 16d ago

What would you like to see tested about running Java apps efficiently?

0 Upvotes

I've been experimenting with ways to run Java applications more efficiently, particularly on smaller VPS instances.

So far I've tested Spring Boot optimizations, Javalin, GraalVM Native Image, different JDK versions, and persistence frameworks. I'm also working on an even leaner Java application stack.

My focus is practical Java: understanding memory usage, startup time, performance, and how to keep deployment simple.

For example, I think a small Java SaaS app can realistically run on a 1 GB VPS, including a database, depending on the workload.

I share these experiments in two Daily Dev squads: Java Experiments and Efficient Self-Hosting. I'm also happy to share interesting results here if people find them useful.

What would you like to see tested next? Any frameworks, libraries, configurations, or real-world deployment scenarios you're curious about?


r/JavaProgramming • • Mar 31 '26

PetStore using pure Java code for UI and type safe mapping for pure SQL

3 Upvotes

Hi everyone,

I recently released a classic PetStore sample application to showcase a completely "Java-first" approach to web development.

My goal was to build a web app with maximum compile-time safety and zero hidden "magic"—using modern Java Records, type-safe mapping for native SQL, and rendering the UI directly from pure Java code without any template engines. It is powered by Spring Boot 3.5 and the lightweight Ujorm 3 library.

I'm really curious to hear your thoughts on this architecture. Does keeping everything within the Java compiler's reach make sense to you, or do you see any potential pitfalls? I'd appreciate any technical feedback!

You can check out the repository and see it in action here: Ujorm PetStore


r/JavaProgramming • • Dec 30 '25

What is the most professional way to create a logging system in Spring Boot?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • May 31 '26

I Solved 100+ System Design Problems: Here Are My Top 20 Recommendations for Interviews

Thumbnail
javarevisited.blogspot.com
1 Upvotes

r/JavaProgramming • • Aug 18 '26

@RequestParam vs @PathVariable in Spring: Key Differences Every Developer Should Know

Thumbnail
javarevisited.substack.com
1 Upvotes

r/JavaProgramming • • Apr 29 '26

Looking for customers

1 Upvotes

Where i can find some websites or discord server with customers for mc plugins or any simple scripts? i know codeing and i want to make some money cuz i have to much free time. Someone help pls


r/JavaProgramming • • Sep 10 '26

Pantallazo azul y problemas de imagen

1 Upvotes

Lamentablemente tengo una historia completa para esto y esta situación que claramente no se como resolver y que no se resolvió con simplemente mandarla al técnico, es lo que me lleva aquí.

Tengo como procesador Ryzen 5 5600g, una fuente de gigabyte de 600w, y una placa madre Gigabyte b450 Ds3h y 32GB (las conseguí cuando esta crisis de precios era impensable) de RAM. A principios de este año, me compre una Intel Arc b580 y de inmediato me dio problemas de imagen. La computadora no era la tildada, solo la imagen. Lo se porque podía apagarla con ALT F4. La mande al técnico y me dijo que podía ser una incompatibilidad de windows 11. Así que me la dieron con windows 10.

Meses después, haciendo mis cosas y jugando a mis jueguitos, me dijeron que era muy raro que la pc no subiera nada de temperatura, sin importar lo que hicieras con la pc, lo cual tiene sentido, porque habían juegos que no deberían haber tenido el rendimiento que tenían. Por dar un ejemplo (helldivers 2, se que es un juego potente xd), pero me andaba a unos constantes 10 fps y otros juegos tenían unos bajonazos. Tocaban los 60 fps, pero de repente tiraba un lagazo terrible. Busque info al respecto y me recomendaron actualizar a windows 11 nuevamente. La actualice y el mismo problema que tuve antes, lo volví a tener. Esta vez me dijeron algo diferente (que windows 11 o 10 no deberían tener nada que ver) y que era probable que la placa madre estuviera fallando. La lleve con otro técnico, le explique la situación y me dijo lo mismo.

Lo que es aun mas extraño, es que haciendo un cambio limpio de drivers, ósea borrando todo lo que pudiera haber tenido entrecruzado, funciono por un tiempo. Después volvió a tener otra vez el problema de pantalla raro donde solo se tilda la imagen, pero no la pc.

Me insistieron aun mas conque probablemente era la placa madre, así que tuve que sacar los ahorros. Me compre una asrock b550 phantom gaming am4. Le instalaron todo y por un tiempo, ando normal. Después, otra vez volvió a dar los problemas de imagen.

Eso nos lleva hasta hace unas semanas donde le volvĂ­ a instalar windows 10 y por alguna razĂłn que me elude, estos problemas de pantalla con windows 10 no suceden. Ahora lo que me esta pasando, es que la PC me esta dando muchos pantallazos azules muy seguido. No tiene que necesariamente ser un juego. Estoy solo usando el navegador, de hecho irĂłnicamente en los juegos mas pesados nunca me tiro pantallazo azul, solo en el navegador.

Tengo entendido que podría ser un problema de drivers. Busque info y aparentemente hay un driver que ayuda la comunicación entre la placa madre y el procesador. La verdad es que en este punto no se nada, así que decidí jugårmela. Busque en la pagina oficial de AMD un driver para chipset y la pc lo rechazo. Incluso probé instalar el adrenalin edition y también lo rechazo. Aclarando, si me deja instalar los drivers de intel para la grafica.

Simplemente no se que hacer


r/JavaProgramming • • Oct 11 '25

Why this post got 100k+ views?

Post image
29 Upvotes

r/JavaProgramming • • Jan 08 '26

Spring Boot 3.2 is a Monster. What's Your Favorite Underrated Feature?

7 Upvotes

The recent Spring Boot updates are low-key revolutionary. We're talking:

  • Virtual threads (Loom) integration out-of-the-box.

  • RestClient – a modern, synchronous alternative to WebClient.

  • Observability baked deeper than ever.

It feels like we got a silent engine upgrade. I switched a service to virtual threads and the throughput graph looked stupid.My questions are Who's upgraded? What feature blew you away? Any production horror stories or wins?


r/JavaProgramming • • Jul 27 '26

Java❀‍đŸ©čAI ? SpringAI or Langchain4j? 🙄what are you using guyssss...

14 Upvotes

🙃


r/JavaProgramming • • Sep 28 '26

Is Core Java enough to get a Java developer job?

15 Upvotes

 Core Java is a good starting point, but for backend jobs, you need to learn a few more skills.

Start with Core Java, then learn SQL, JDBC, Spring Boot, REST APIs, Git, and basic database concepts.

A simple learning path is:

Core Java → SQL → Spring Boot → REST APIs → Projects

Building a few real projects will also help you understand how everything works together.


r/JavaProgramming • • May 26 '25

Boolean and String part done

Thumbnail
gallery
2 Upvotes

r/JavaProgramming • • Oct 11 '26

A HashSet “lost” my object after I changed one field. Walked through it in jshell

2 Upvotes

I wanted to see this one with my own eyes, so I typed it into jshell. Output is below with notes in between.

jshell> class Point {
   ...>     int x;
   ...>     Point(int x) { this.x = x; }
   ...>      public boolean equals(Object o) {
   ...>         return o instanceof Point p && p.x == x;
   ...>     }
   ...>     u/Override public int hashCode() { return Integer.hashCode(x); }
   ...> }

jshell> var set = new HashSet<Point>();
jshell> var p = new Point(1);
jshell> set.add(p);
$4 ==> true

Nothing odd yet. equals and hashCode both use x, which is what most IDEs generate.

jshell> p.x = 2;
jshell> set.size()
$6 ==> 1

jshell> set.contains(p)
$7 ==> false

jshell> set.remove(p)
$8 ==> false

This is the part that surprised me. The set says it has one element, and it says it doesn’t contain the exact object I’m holding a reference to. remove fails too.

jshell> for (Point q : set) System.out.println(q == p);
true

Iteration finds it. Iteration just walks every bucket, no hashing involved. contains and remove compute hashCode() first (now based on 2), go to that bucket, and find nothing. The object is still sitting in the bucket picked when its x was 1.

As far as I understand it, there’s no error because HashSet never learns the object changed. It only looks at the hash at insertion time and again at lookup time. If the two differ, you get a silent miss.

So the object is still in the set but unreachable by key. That’s the part that would be annoying to debug in a real codebase: size is right, iteration is right, lookups are wrong.

Things I’ve seen suggested for this:

  • keep fields used in hashCode final (records do this by default)

  • if the key has to change, remove it first, change it, add it again

  • use an immutable key type, like a String or a Long id, instead of the whole entity

Question for people who’ve worked on bigger projects: do you ever see this with JPA entities used as keys in sets, where the id is null before persist and set afterward? I’d guess it’s the same problem in a different outfit, but I haven’t tried it.


r/JavaProgramming • • Mar 05 '25

How to Crack Java Programming Interviews? Topics, Courses, Books, and Questions

Thumbnail
javarevisited.blogspot.com
2 Upvotes

r/JavaProgramming • • Dec 11 '25

“Fresher Here — Which Skills Lead to the Best Packages Today?

2 Upvotes

I recently started studying Full Stack Java, but now AI is booming everywhere. What skills will help a fresher get a high-paying job in the current market?


r/JavaProgramming • • Mar 30 '25

How to connect to MySQL database from Java?

Thumbnail
youtube.com
2 Upvotes

r/JavaProgramming • • Oct 25 '25

Where do I learn java from?

2 Upvotes

r/JavaProgramming • • Jul 08 '26

Alberta byggede en 25 Är gammel Java-portal om pÄ 4-5 dage med Claude

0 Upvotes

En portal til et tilskudsprogram. HÄndkodet i Java for 25 Är siden. Tog fem mÄneder at bygge fÞrste gang.

Alberta byggede den om pÄ fire til fem dage med Claude Code. Deres eget tal.

Det er den vinkel ved casen, jeg ville kigge pÄ, hvis jeg sad pÄ arvekode. Ikke fordi du skal rippe alt op, men fordi build-versus-rebuild-regnestykket lige har flyttet sig.

Alberta planlÊgger at samle 185 gamle apps i ét ministerium til 16 moderne, genbrugelige apps. Samme funktion, langt mindre at vedligeholde.

Det vigtige er ikke farten alene. Det er, at Claude henviste til fil og linje undervejs, sÄ et menneske kunne efterprÞve hvert skridt. Fart uden verificerbarhed er bare hurtig gÊld.

Hele analysen: https://brinvik.com/da/journal/alberta-claude-sikkerhedsgennemgang-kode


r/JavaProgramming • • Apr 06 '25

Java Logging API

Thumbnail
medium.com
2 Upvotes

r/JavaProgramming • • Sep 06 '25

How HashMap works in Java?

Thumbnail javarevisited.blogspot.com
2 Upvotes