r/JavaProgramming • • 3h ago

Top 10 Skills Every Programmer or Developer Should Learn Before 2027

Thumbnail medium.com
1 Upvotes

r/JavaProgramming • • 5h ago

Liferay Developer with 3 years experience — how realistic is it to switch to Spring Boot?

1 Upvotes

I have around 3 years of experience working mainly with Liferay DXP 7.4, Java, OSGi, Service Builder, MVC Portlets, REST APIs, etc.

Recently, I’ve been thinking about switching from Liferay to a more general Java + Spring Boot backend role because I’m concerned about limiting my career to Liferay.

I’ve started learning Spring Boot, REST APIs, SQL, JUnit/Mockito, and backend development, but I’m honestly finding it difficult to judge how realistic this transition is.

For people who have made a similar transition:

  • How difficult was it to move from Liferay to Spring Boot?
  • Do companies consider Liferay/Java experience relevant when hiring for Spring Boot roles?
  • Should I target Java/Spring Boot roles directly, or first look for roles where Liferay + Spring Boot are both useful?
  • What skills/topics should I focus on before applying?
  • With ~3 years of experience, should I apply for mid-level Spring Boot positions, or would I likely need to start at a lower level?
  • Is this switch actually worth it, considering the current Java/Spring Boot job market?

Would really appreciate honest opinions, especially from people who have actually made this transition.


r/JavaProgramming • • 8h ago

Java library

0 Upvotes

I'm planning to build a Java library. What's one feature or functionality you wish existed in Java that would make programming easier? I'd love to hear your ideas!


r/JavaProgramming • • 9h ago

How to brush up for an interview?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 1d ago

I Almost Gave Up on DSA. Then I Found These 14 Patterns.

Thumbnail
javarevisited.substack.com
23 Upvotes

r/JavaProgramming • • 22h ago

Java fundamentals

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 1d ago

How Java Virtual Threads Actually Work (your 200 thread pool was never a...

Thumbnail
youtube.com
1 Upvotes

r/JavaProgramming • • 1d ago

Best Java course on udemy before joining as a java software engineer trainee

9 Upvotes

Pls recommend


r/JavaProgramming • • 1d ago

Any help on how to improve this?

1 Upvotes
void main(String[] args) {
    Random rand = new Random();

    // 1. Single 'int' (no brackets), starting at 1 so it always prints at least one word
    int words = rand.nextInt(1, 10);
    int[] arrayofrandomint = new int[words];
    Scanner input = new Scanner(System
in
);
    String wordslist = " This is an actual pargraphing creting AI, it generates" +
            "text and predicts what the next word will be depending on how many" +
            "other words are around it.";
    String[] newdata = wordslist.toLowerCase(Locale.
ROOT
).trim().split(" ");



    for (int i = 0; i < words; i++) {
        //String currentWord = wordslist[rand.nextInt(0, wordslist.length)];
        // While in the for loop, resets the word every time insted of letting
        //this bigram chain flow from one word to another.
        String currentWord = newdata[rand.nextInt(0, newdata.length)];


        System.
out
.print(currentWord + " ");
    for (int j  = 0; j < newdata.length - 1; j++) {
        if (newdata[j].equals(currentWord)) {
            currentWord = newdata[j + 1];
            System.
out
.print(currentWor
d +  " ");

        }
    }



    }
}

I created a little bigram model using two for loops. I'm new to coding and have wanted to use my free time for something productive, so I started to learn how to code. Now that I'm getting better, I want to post something to show the progress. This model uses text as a string that is held within a container; the container then uses the variable wordslist and uses three methods on it. You can see what the I variable does, and J variable has a Universal Set (U) = {1,2,3} (three numbers). {a,b,c} three index positions. [a = 0, b = 1....] b = (length - 2), because (length < -1) J = {1,2} {a,b,c} = (a,b-c). mport java.util.Random; import java.util.Scanner;


r/JavaProgramming • • 1d ago

Need help regarding java learning path

3 Upvotes

Hy I'm a beginner java learner. Recently my friend said java got a bit easier and the syntax is shortened.

Does that mean I should learn the new java version, fundamentals etc? Or start from the earlier version of java?


r/JavaProgramming • • 1d ago

I Tried 100+ Udemy Courses: Here Are the 10 Developers Should Buy on Black Friday 2026

Thumbnail
javarevisited.substack.com
0 Upvotes

r/JavaProgramming • • 2d ago

Java study buddies server

4 Upvotes

Hey everyone i am first year student and I had created a server at discord and in that we will learn java from scratch and improving each other's understanding by supporting each other only serious people dm me to join


r/JavaProgramming • • 1d ago

I have to develop a final project for my Object-Oriented Programming (OOP) course using Java. Can you suggest some creative and interesting project ideas? I want to build something different from the usual management systems. Please suggest a project that meets typical university project requirement

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 2d ago

Run a Frontend and API Together From One Tunnel File

Thumbnail
instawormhole.com
1 Upvotes

r/JavaProgramming • • 2d ago

Got the “this app won’t be supported” (macOS) warning for Jaspersoft Studio, so I built a native replacement

4 Upvotes

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 • • 2d 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??

2 Upvotes

is it even possible ?


r/JavaProgramming • • 2d ago

Best YouTube Channel to Learn Java from Scratch?

8 Upvotes

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 • • 2d ago

Newest program I created with the aid of AI. It's kinda a word generator storage type thing. A precursor to LLMs

3 Upvotes
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 • • 2d ago

Security

1 Upvotes

Suggest me some good spring security tutorials or learning sources.. i need to implement it to my e commerce backend


r/JavaProgramming • • 2d ago

Follow-up: I turned lessons from rewriting Spring PetClinic into reusable AI Agent Skills

1 Upvotes

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:

  1. An UPDATE affecting zero rows incorrectly reported success.
  2. 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 • • 3d ago

alguien sabe de algun curso gratuito de oauth2 en spring security?

Thumbnail reddit.com
1 Upvotes

r/JavaProgramming • • 3d ago

[Hiring] Senior Java Backend Engineers - Switzerland (EU citizens only)

1 Upvotes

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.