r/JavaProgramming • u/Creative_Young_446 • 6d ago
r/JavaProgramming • u/Mission-Mention5998 • 6d ago
Hey i'm from tier 3 college in my 5th sem learned java till half of array i have ECE as my btech speciallization and cgpa is 7.49 i have my placements in my 7th sem what are the most important things i must start to do atleast to land up in the cognizant like mass recruiters??
is it even possible ?
r/JavaProgramming • u/zvone138 • 6d ago
Got the “this app won’t be supported” (macOS) warning for Jaspersoft Studio, so I built a native replacement
A few months ago macOS started showing me that popup saying Jaspersoft Studio won’t work in a future version. It’s an Intel app running through Rosetta, and there’s no Apple Silicon build coming as far as I can tell.
Problem is I live in that thing. I tried the other Mac options that handle jrxml and jasper compiling, and in the end built my own native macOS app.
It’s called Report Studio. The app itself is Swift (SwiftUI and AppKit), and it talks to the JasperReports engine running as a small bundled Java process. It opens the same .jrxml files and uses the real JasperReports engine underneath, so there are no compatibility surprises. I use it for my actual work now, since much smoother and easier to work with than the Studio used before.
It’s free: https://bowa.up.railway.app/report-studio
Anyone else still on Jaspersoft Studio on a Mac?
What other ways do you use to open jrxml and compile jasper files, except Jaspersoft studio?
r/JavaProgramming • u/curious_guy_404 • 7d ago
Best YouTube Channel to Learn Java from Scratch?
Hi everyone!
I'm from India and currently a 4th-year Computer Science student. I'm learning Java and looking for a good YouTube channel that teaches Java in a simple and easy-to-understand way.
I want to build a strong foundation and clear my concepts rather than just memorizing code.
Could you please suggest some of the best YouTube channels or instructors for learning Java? I'm especially looking for someone who explains concepts in depth with practical examples.
r/JavaProgramming • u/XIA_Biologicals_WVSU • 6d ago
Newest program I created with the aid of AI. It's kinda a word generator storage type thing. A precursor to LLMs
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Random;
import java.util.Scanner;
public class MiniLanguageModel {
// Stores words and the words that follow them
static HashMap<String, ArrayList<String>>
brain
= new HashMap<>();
// Stores all known vocabulary
static HashSet<String>
vocabulary
= new HashSet<>();
static Random
random
= new Random();
public static void main(String[] args) {
Scanner scanner = new Scanner(System.
in
);
// Starter knowledge
train
("the quick brown fox jumps over the lazy dog", false);
train
("the dog barks at the fox in the yard", false);
train
("hello how are you", false);
train
("i am a mini language model", false);
train
("artificial intelligence can learn new words", false);
System.
out
.println("=== Mini-AI Ready ===");
System.
out
.println("I can learn words and generate sentences.");
System.
out
.println("\nCommands:");
System.
out
.println("learn <text> - Teach the AI");
System.
out
.println("vocab - Show vocabulary");
System.
out
.println("chat - Generate a sentence");
System.
out
.println("generate - Generate a random sentence");
System.
out
.println("exit - Close the program");
while (true) {
System.
out
.print("\nYou: ");
String input = scanner.nextLine().trim();
if (input.equalsIgnoreCase("exit")) {
System.
out
.println("AI: Goodbye!");
break;
}
else if (input.equalsIgnoreCase("vocab")) {
displayVocabulary
();
}
else if (input.equalsIgnoreCase("chat")) {
System.
out
.print("Starting word: ");
String seed = scanner.nextLine()
.toLowerCase()
.trim();
System.
out
.println("AI: " +
generateSentence
(seed, 12));
}
else if (input.equalsIgnoreCase("generate")) {
System.
out
.println("AI: " +
generateRandomSentence
(12));
}
else if (input.toLowerCase().startsWith("learn ")) {
String sentence = input.substring(6).trim();
if (!sentence.isEmpty()) {
train
(sentence, true);
System.
out
.println("AI: I learned something new!");
}
}
else if (!input.isEmpty()) {
train
(input, true);
System.
out
.println("AI: I have learned your sentence.");
}
}
scanner.close();
}
// Train the AI
public static void train(String text, boolean showFeedback) {
String cleaned = text.toLowerCase()
.replaceAll("[^a-z0-9\\s]", "")
.trim();
if (cleaned.isEmpty()) {
return;
}
String[] tokens = cleaned.split("\\s+");
for (String word : tokens) {
vocabulary
.add(word);
}
// Learn word relationships
for (int i = 0; i < tokens.length - 1; i++) {
String currentWord = tokens[i];
String nextWord = tokens[i + 1];
brain
.putIfAbsent(currentWord, new ArrayList<>());
brain
.get(currentWord).add(nextWord);
if (showFeedback) {
System.
out
.println(
" Learned connection: "
+ currentWord + " -> " + nextWord
);
}
}
}
// Generate a sentence from a starting word
public static String generateSentence(String seed, int maxWords) {
seed = seed.toLowerCase().trim();
if (!
vocabulary
.contains(seed)) {
return "I don't know that word yet. Teach me using learn <text>!";
}
StringBuilder sentence = new StringBuilder(seed);
String currentWord = seed;
for (int i = 1; i < maxWords; i++) {
ArrayList<String> possibleWords =
brain
.get(currentWord);
if (possibleWords == null || possibleWords.isEmpty()) {
break;
}
String nextWord = possibleWords.get(
random
.nextInt(possibleWords.size())
);
sentence.append(" ").append(nextWord);
currentWord = nextWord;
}
return
capitalize
(sentence.toString()) + ".";
}
// Generate a sentence using a random starting word
public static String generateRandomSentence(int maxWords) {
if (
vocabulary
.isEmpty()) {
return "I don't know any words yet!";
}
ArrayList<String> words = new ArrayList<>(
vocabulary
);
String seed = words.get(
random
.nextInt(words.size()));
return
generateSentence
(seed, maxWords);
}
// Display vocabulary
public static void displayVocabulary() {
System.
out
.println("\n=== AI Vocabulary ===");
if (
vocabulary
.isEmpty()) {
System.
out
.println("No words learned yet.");
return;
}
ArrayList<String> words = new ArrayList<>(
vocabulary
);
words.sort(String::compareTo);
for (String word : words) {
System.
out
.println("- " + word);
}
System.
out
.println("\nTotal words: " +
vocabulary
.size());
}
// Capitalize first letter
public static String capitalize(String text) {
if (text == null || text.isEmpty()) {
return text;
}
return text.substring(0, 1).toUpperCase()
+ text.substring(1);
}
}r/JavaProgramming • u/Advanced_Active_5105 • 6d ago
Security
Suggest me some good spring security tutorials or learning sources.. i need to implement it to my e commerce backend
r/JavaProgramming • u/fykup • 7d ago
Follow-up: I turned lessons from rewriting Spring PetClinic into reusable AI Agent Skills
A few days ago, I shared my experiment rewriting Spring PetClinic without Spring Boot or Hibernate.
That rewrite was considerably more involved than simply replacing framework APIs. I had to work through persistence relationships, transaction boundaries, validation, HTTP behavior, and other details that Spring Boot and Hibernate normally handle.
The interesting follow-up is what I did with those lessons.
I used the experience to create two experimental Agent Skills that can help Codex and other coding agents approach similar Java migrations:
- JPA Migration Skill: Helps migrate Spring Data JPA/Hibernate persistence to explicit SQL using CoilBase/Jdbi, while optionally keeping Spring Boot.
- Spring Boot Migration Skill: Helps migrate application infrastructure to CoilBase with Avaje Jex, including routing, configuration, wiring, and lifecycle decisions.
These aren't one-click converters. They guide the agent through identifying existing behavior, making architectural decisions explicit, and verifying the resulting application.
But do the skills actually work?
I tested them separately against a fresh, pinned Spring PetClinic revision using Codex.
In the first trial, Codex replaced owner, pet, and visit persistence while keeping Spring Boot. All 17 packaged H2 checks passed, including HTTP workflows, committed database state, rollback, concurrency, and restart.
Independent code review still found two bugs:
- An UPDATE affecting zero rows incorrectly reported success.
- A repository accepted sorting parameters but silently ignored them.
Both were fixed with regression tests.
I also tested the skills sequentially: first migrating all three JPA repository groups, then replacing Spring Boot/MVC with Avaje Jex while reusing the SQL repositories. That application passed 28 Maven tests and the tested H2 workflows.
These were H2-only experiments, and I haven't run a controlled comparison without the skills, so I can't quantify their effectiveness.
The goal isn't to automate every architectural decision. It's to make migration knowledge reusable so an agent can handle more of the straightforward work while highlighting what needs careful review.
Full article, with links to both skills and the public experiment:
https://pvrlabs.xyz/articles/ai-agent-jpa-migration-code-review.html
I'm also the author of CoilBase, the lightweight Java foundation used in these experiments.
Has anyone tried turning lessons from a difficult Java migration into reusable instructions for coding agents? I'm curious how well that knowledge transfers to other applications.
r/JavaProgramming • u/maikel237508 • 7d ago
alguien sabe de algun curso gratuito de oauth2 en spring security?
reddit.comr/JavaProgramming • u/Majestic_Average4383 • 7d ago
[Hiring] Senior Java Backend Engineers - Switzerland (EU citizens only)
Multiple Java Backend Engineer openings in Switzerland
🇨🇭 Multiple Java Backend Engineer openings in Switzerland
I’m supporting a Swiss company that’s building out its engineering team and hiring several Java Backend Engineers for permanent roles in Zurich, Switzerland.
The work: building and supporting production backend systems in a small, hands-on engineering team for a Swiss technology company expanding its engineering team.
You’ll bring:
Strong experience with Java and Spring 5+ years
Knowledge of networking fundamentals, including TCP/IP
Experience with several of: JMS/ActiveMQ Artemis, MongoDB, Elasticsearch, Redis, MySQL or XtraDB
Solid Linux, Docker, Git, CI/CD and Maven skills
English at B2 level or above; German is a plus
The role is hybrid, with three days per week in the office. Relocation to Switzerland
EU citizenship is required to apply!
Interested, or know someone who might be a fit? Send me a message.
r/JavaProgramming • u/javinpaul • 8d ago
Stop Memorizing Microservices — Master These 19+ Patterns for Any System Design Interview
r/JavaProgramming • u/Alternative_Ad_8288 • 8d ago
Java Beginner – Struggling with OOP and Understanding Stack and Heap
reddit.comr/JavaProgramming • u/Ksreddy2707 • 8d ago
[Study Partner] Beginner learning Java backend, open to people from any country
reddit.comr/JavaProgramming • u/XIA_Biologicals_WVSU • 8d ago
A cool little program (thinking about what to do with it next and how to add stuff to it).
This is a cool little program I made using some for loops and other stuff. The idea is mine: I built it from the first two for loops and then used chatGPt for other ideas. Most of the code is original and only some ideas are from chatGPT. I thinking using AI has helped my learn faster, rather than learning from documentation alone.
import java.util.Scanner;
import java.util.ArrayList;
void main(String[] args) {
System.
out
.print("Enter a sentence: ");
Scanner scanner = new Scanner(System.
in
);
String i = scanner.nextLine();
String[] tokens = i.trim().split("\\s+");
ArrayList<String> list = new ArrayList<>();
for (int x = 0; x < tokens.length; x++) {
list.add(tokens[x]);
}
String[][] arraytwo = new String[list.size()][2];
int rows = 0;
// Check each word
for (int j = 0; j < list.size(); j++) {
String word = list.get(j);
boolean found = false;
// Check if word is already in the 2D array
for (int y = 0; y < rows; y++) {
if (word.equalsIgnoreCase(arraytwo[y][0])) {
found = true;
int occurrences = Integer.
parseInt
(arraytwo[y][1]);
occurrences++;
arraytwo[y][1] = String.
valueOf
(occurrences);
break;
}
}
// If word is not found, add it
if (!found) {
arraytwo[rows][0] = word;
arraytwo[rows][1] = "1";
rows++;
}
}
// Display results
for (int j = 0; j < rows; j++) {
System.
out
.println(
arraytwo[j][0] + " appears " +
arraytwo[j][1] + " times."
);
}
System.
out
.println("Total words: " + list.size());
scanner.close();
}
}r/JavaProgramming • u/vegan_antitheist • 8d ago
Valhalla: On the use of == on value types
humanoid-readable.claude-martin.chJava 28 has a preview on value types, so I tested it. In this blog post I answer the question:
Can we use == on the new value types, or do we still have to use Objects.equals()?
(No ads, written by a human.)
Tldr: use Objects.equal instead of == even with value types.
r/JavaProgramming • u/prashxx • 9d ago
Anyone who is into enterprise Java backed projects?
Hey everyone,
I've been working as a PHP developer for a while and have been steadily building up my backend skills in the Java ecosystem (Java, Spring Boot 3, Microservices, Kafka, Redis, PostgreSQL, Docker, AKS, and Observability etc..).
To make the switch to a backend/Java role, I want to put a genuinely production-grade enterprise project on my resume-something that avoids "resume-driven" over-engineering and actually solves real business constraints
By understanding its architecture, which solves business problems, and practice follow up questions on them
If you are into real project who is currently working.
Can you please help me on this.
Thanks in advance
r/JavaProgramming • u/IllustratorIcy5691 • 9d ago
How learn Backend after mastering a programming language ?
reddit.comr/JavaProgramming • u/Fantastic-Tower8333 • 9d ago
Title: 2026 B.Tech Graduate – Seeking Career Guidance to Become a Job-Ready Java Full Stack Developer Hi everyone! I'm a 2026 B.Tech graduate and have decided to pursue Java Full Stack Development as my career path. I'm currently learning Core Java and have completed topics up to Java Collections
Hi everyone!
I'm a 2026 B.Tech graduate and have decided to pursue Java Full Stack Development as my career path.
I'm currently learning Core Java and have completed topics up to Java Collections.
I would appreciate guidance from experienced developers, recruiters, and people who recently started their IT careers.
I have a few questions:
Which Java topics should I master before moving to Spring Boot?
How important are DSA and problem-solving skills for freshers?
Which technologies should I learn for Java Full Stack Development (Spring Boot, Hibernate, React, etc.)?
How important are SQL, Git, GitHub, REST APIs, and cloud knowledge?
What skills are companies primarily looking for in freshers in the current job market?
What kind of projects should I build to make my resume stand out?
My goal is to become job-ready and secure a Java Developer role as a fresher.
Experienced developers and recent graduates, please share your learning roadmaps, suggestions, and interview experiences.
Your guidance would be really helpful. Thank you!
r/JavaProgramming • u/__raikar • 9d ago
"A Beginner's Journey into Software Development"
Hello everyone!
I'm starting my journey into software development, currently learning Java Full Stack Development.
I'm interested in Java, OOP, Spring Boot, REST APIs, SQL, and building real-world applications.
As a beginner, I'm here to learn from experienced developers, explore different perspectives, and understand what working as a software engineer is really like.
I'd love to hear your advice:
- What skills should a beginner focus on?
- What mistakes should I avoid?
- What do you wish you had known when starting your software engineering career?
Looking forward to learning from this community! 🚀
r/JavaProgramming • u/Ok-Leadership2968 • 9d ago
I'm looking for answers that are suitable for fresher interviews and easy to explain during technical rounds.
Hi everyone,
I'm currently preparing for Java Full Stack Developer interviews and was wondering if anyone has a collection of well-structured interview answers (not just questions) for topics like:
- Core Java
- OOPs
- Collections
- Exception Handling
- Multithreading
- JDBC
- Spring & Spring Boot
- Hibernate/JPA
- REST APIs
- SQL
- HTML, CSS, JavaScript
- React.js
- Maven
- Git
- Microservices
- HR/Self-introduction
I'm looking for answers that are suitable for fresher interviews and easy to explain during technical rounds.
If you have notes, PDFs, GitHub repositories, or any resources that helped you crack interviews, I'd really appreciate it if you could share them.
Thanks in advance!
r/JavaProgramming • u/fykup • 10d ago
I rewrote Spring PetClinic without Spring Boot or Hibernate. 59% less RAM, but forms were harder.
I develop CoilBase, so this is my own experiment. I wanted to see how much of a conventional Spring application I could keep without the Spring Boot runtime, so I rewrote Spring PetClinic using CoilBase, Avaje Jex, Jdbi and JTE.
Replacing Hibernate with explicit SQL was relatively straightforward. Controllers, services, repositories and constructor wiring all stayed familiar.
The harder part was everything Spring MVC normally handles for you: form binding, validation, sessions, CSRF, flash messages, redirects and localization.
For example, invalid form submissions needed explicit handling to preserve user input and validation errors, including overriding the generated POST adapter's default HTTP 201 response with 200. Small details like that added up.
On a 1 vCPU, 1 GiB VM with PostgreSQL, the rewrite used 126 MiB of application RSS versus 304 MiB for the original (59% less). The complete uncompressed deployment was also 85% smaller.
Both ran on Java 25 HotSpot with the same heap settings. These are complete-stack results from a short workload, not isolated framework costs.
Implementation, tradeoffs and benchmark limitations:
https://pvrlabs.xyz/articles/coilbase-petclinic-rewrite.html
For anyone who's moved off Spring MVC, or considered it: which convenience would you miss most?