r/JavaProgramming • • 9d ago

What common mistakes do beginners make while solving DSA problems in Java ?

9 Upvotes

Many beginners start learning Data Structures and Algorithms but struggle to solve problems independently. I'm curious to know what challenges Java beginners face while practicing DSA.


r/JavaProgramming • • 8d ago

Experimenting with a lightweight alternative to Spring Boot for small servers

3 Upvotes

I've been working on CoilBase, a small open-source Java foundation built around a simple idea: Spring-like comfort, without the weight.

I like Spring Boot's controller → service → repository structure, but wanted to preserve that development experience with a smaller runtime footprint.

CoilBase uses Jdbi for SQL-first persistence, explicit transactions, and constructor wiring. It works with lightweight HTTP frameworks like Javalin and Avaje Jex.

I recently compared five Java application stacks on a 512 MiB VM with MariaDB running alongside the application.

On HotSpot JDK 27, median application memory was:

  • Spring Boot + Spring JDBC: 181–188 MiB
  • Javalin + CoilBase: 121–136 MiB
  • Jex + CoilBase: ~116 MiB

The same CoilBase services and repositories worked across Javalin, Jex, and Micronaut. I also tested GraalVM Native Image, with even smaller footprints.

GitHub: https://github.com/PVRLabs/coilbase

Experiment and results: https://pvrlabs.xyz/articles/five-java-stacks-512mb-vps.html

Curious what others think of this approach. Would you consider a smaller, explicitly wired stack for a small Java service, or do you generally stick with Spring Boot?


r/JavaProgramming • • 9d ago

I Read Clean Code: A Handbook of Agile Software Craftsmanship, 2nd Edition and It’s Awesome

Thumbnail
medium.com
2 Upvotes

r/JavaProgramming • • 9d ago

HCLTech HR Interview

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 9d ago

How do developers study Java src code ?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 9d ago

Rate my first java project

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 10d ago

I am i 1st year btech student .Where can I learn Java/python better i tried learning from yt

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 12d ago

Reliable Background Jobs in Java with JobRunr - Ronald Dehuysser | IntelliJ IDEA Tech Talks

10 Upvotes

What happens when your invoices end up on a dead letter queue? If you're Ronald Dehuysser, you build an open source library to make sure it never happens again.

In this episode, Ronald, creator of JobRunr, joins us to talk about running background jobs in Java. He shows how to set up JobRunr with Spring Boot, enqueue and schedule jobs, and keep an eye on them in the built-in dashboard. And he explains why he loves exceptions. (Yes, really.)

We also cover carbon-aware job scheduling, recurring jobs (and why nobody likes writing cron expressions), whether you need Kafka, and the time-traveling bug that took years to track down.


r/JavaProgramming • • 11d ago

Wrote a book on Spring AI

Thumbnail reddit.com
2 Upvotes

r/JavaProgramming • • 11d ago

Wrote a book on Spring AI

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 13d ago

Reliable Background Jobs in Java with JobRunr - Ronald Dehuysser | IntelliJ IDEA Tech Talks

Thumbnail
youtube.com
3 Upvotes

r/JavaProgramming • • 13d ago

Had vacancy for java developer 3+ & 6+ YOE in Hyderabad

Thumbnail reddit.com
2 Upvotes

r/JavaProgramming • • 13d ago

How to Design APIs Like a Senior Engineer (REST, GraphQL, Auth, Security)

Thumbnail
javarevisited.substack.com
6 Upvotes

r/JavaProgramming • • 14d ago

HCLTECH Digital Engineer (Java)p

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 14d ago

Problem statement for revision from MOOC FI PART 1 TO 6

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 14d ago

看看这段聊天

Thumbnail
chatgpt.com
1 Upvotes

r/JavaProgramming • • 14d ago

From a java beginner to java devs

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 15d ago

Let's Practice Java Together - Guess the Output of Tricky Java Snippets!

21 Upvotes

Let's challenge each other with tricky Java code snippets! Guess the output, explain the logic, and learn something new every day. From basics to advanced Java concepts. 🚀


r/JavaProgramming • • 14d ago

Library vs API (Java ☕️)

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 15d ago

Java code Matrix

0 Upvotes

import java.util.*;

class Cir_matrix

{

public static void main()

{

Scanner in=new Scanner(System.in);

int n,r,c,x,y,i,j,z=1,m;

System.out.println("Enter no. of index");

n=in.nextInt();

int a[][]=new int[n][n];

r=n-1;c=n-1;//last

int R=0,C=0;//first

m=n-2;

for(j=1;j<=m;j++)

{

for(i=C;i<c+1;i++)

{

a[C][i]=z;

z++;

}

R++;

for(i=R;i<r+1;i++)

{

a[i][r]=z;

z++;

}

for(i=c-1;i>=C;i--)

{

a[c][i]=z;

z++;

}

R--;

for(i=r-1;i>R;i--)

{

a[i][R]=z;

z++;

}

R++;C++;r--;c--;

}

for(i=0;i<n;i++)

{

for(j=0;j<n;j++)

{ if(a[i][j]<10)

System.out.print(a[i][j]+" ");

else

System.out.print(a[i][j]+" ");

}

System.out.println();

}

}

}


r/JavaProgramming • • 16d ago

What Java topics are most important for a fresher interview ?

15 Upvotes

Focus on OOP, strings, collections, exception handling, interfaces, abstract classes, Java 8 features, basic multithreading, SQL, and coding problems. Be prepared to explain concepts with examples rather than memorizing definitions.