r/JavaProgramming • u/Economy_Tie_5224 • 12d ago
r/JavaProgramming • u/Adventurous-Cash-127 • 12d ago
Problem statement for revision from MOOC FI PART 1 TO 6
reddit.comr/JavaProgramming • u/TelevisionMajor6461 • 13d ago
Let's Practice Java Together - Guess the Output of Tricky Java Snippets!
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 • u/SniperxAMW_ • 13d ago
Java code Matrix
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 • u/thearjunreddy • 14d ago
What Java topics are most important for a fresher interview ?
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.
r/JavaProgramming • u/SniperxAMW_ • 13d ago
Java code
import java.util.*;
class Saddle
{
public static void main()
{
Scanner in =new Scanner(System.in);
System.out.println("Enter no. of index between 3 and 10");
int n=in.nextInt();
if(n<3||n>10)
return;//change to true while
int a[][]=new int[n][n];
System.out.println("Enter value in matrix");
int i,j,t,p,y=0,z=0,s=0,d,I;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
a[i][j]=in.nextInt();
}
System.out.println("original matrix");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(p=0;p<n;p++)
{
if(a[i][j]<=a[i][p])
{
y++;
}
}
for(p=0;p<n;p++)
{
if(a[i][j]>=a[p][j])
{
z++;
}
}
if(y==n&&z==n)
{
System.out.println("Saddle point at index "+i+" "+j);
}
y=0;
z=0;
}
}
j=n;t=0;
System.out.println("original matrix");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
j=n-1;i=0;
for(I=1;I<=n;I++)
{
t=a[i][j];
while(t>0)//Harshad no
{
d=t%10;
s+=d;
t=t/10;
}
p=(n-1)-j;
if(s!=0)
{
if(a[i][j]%s==0)
a[i][p]=a[i][j];
}
i++;
j--;
s=0;
}
System.out.println("Moidified matrix");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
System.out.print(a[i][j]+" ");
System.out.println();
}
}
}
r/JavaProgramming • u/frekost • 14d ago
Combining gRPC and Kafka in Java Microservices with Micronaut 4
reddit.comr/JavaProgramming • u/surya_bonagiri • 15d ago
Charles Schwab – Java Interview Experience
Yesterday, I attended a Java interview at Charles Schwab.
The interview was scheduled in two parts.
1. Coding/Assessment Round
In the first half, I was given a problem statement to build a simple Appointment Scheduler Java API.
The requirements were:
Appointments should not clash with each other.
Appointments should be booked correctly without conflicts.
The application should work for multiple customers at the same time.
The solution should handle concurrency without deadlocks.
The assessment was focused on building a simple Java API project around appointment scheduling.
Also, they offered a good and proper lunch in the cafeteria, which was a nice experience.
2. Interview Round
After completing the assessment, I was called for an interview round. They reviewed the assessment in the interview room itself and then asked me the following questions.
About myself
Tell me about yourself.
Why are you looking for a job change?
Production debugging
Suppose there is an issue in production, but the same issue cannot be reproduced in any of the lower environments. How would you start debugging it?
Suppose I want to change the production logging level on the fly from ERROR to DEBUG and then change it back to ERROR. How would you do that?
Microservices logging
Suppose there are three microservices communicating with each other. How would you implement logging across these services?
If there is a failure in Service 2, how would you identify where exactly the failure happened?
Trace ID / Span ID
How would you use a Trace ID and Span ID?
How would you use the Trace ID to identify where an issue occurred and which service failed?
Server restart / lost logs
Suppose a server restarted and all the error logs were lost. How would you investigate what happened?
Why do servers restart automatically?
Once completing this round.there is another round of DSA & HR.
Overall, the interview was focused heavily on Java, concurrency, production debugging, logging, microservices, and distributed tracing.
r/JavaProgramming • u/FrankCodeWriter • 14d ago
New Foojay Podcast: 53 CVEs in one OpenJDK update, two out-of-cycle releases, and what CPU, PSU, and CSPU mean
r/JavaProgramming • u/Feisty-Outside5055 • 14d ago
Java Job trend
I am a fresher trying to get into IT. I started studying Java Spring Boot. I want to know if companies still hire for Java roles.
r/JavaProgramming • u/AgreeableAvocado7657 • 15d ago
I Designed a Modern Medicare Dashboard System Using Pure Java Swing
Hi everyone,
I've been working on a modern Medicare Dashboard System using pure Java Swing, and I'd like to share my latest project with you.
The system includes three different dashboard designs:
Hospital Dashboard
Medical Dashboard
Dentist Dashboard
I focused on creating a clean, modern, and user-friendly interface using standard Java Swing components without any external UI frameworks.
The dashboards include navigation menus, statistics cards, data tables, charts, patient information, and custom UI components.
I also tried to give each dashboard its own look and feel while maintaining a consistent design across the entire system.
I've recorded a step-by-step tutorial showing the design process and sharing the source code.
Watch the Full Tutorial:
https://www.youtube.com/watch?v=C7PcMyNcrTs
I'd really appreciate your feedback. What do you think of the design? Which of the three dashboards do you like most?
I'm always interested in hearing suggestions from other Java developers.
r/JavaProgramming • u/Background_Cut2792 • 15d ago
Learn Java Programming with an Industry Professional ! Are you a beginner, college student, or aspiring software developer looking to build a career in IT?
reddit.comr/JavaProgramming • u/fykup • 15d ago
What would you like to see tested about running Java apps efficiently?
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 • u/javinpaul • 16d ago
LeetCode was HARD Until I learned these Coding Patterns
r/JavaProgramming • u/LongCelebration4425 • 16d ago
I built a starter that discovers every @Scheduled and Quartz job and alerts you when one stops running
reddit.comr/JavaProgramming • u/javinpaul • 17d ago
System Design Interview was Hard until I learned these 20 Concepts