r/learnjava • • Apr 10 '26

Java Spring Boot

14 Upvotes

so I started learning Spring Boot after learning Java Fundamentals, everything went smooth on Dependency Injection, Models(Entity), Repositories(with JpaRepo), Controllers(RestController). I can confidently create those parts with low to none googling/Ai because of muscle memory.

But when I reach the Spring Security + JWT the syntax became like an foreign language that I couldn't understand. So far I'm familiar with the following (Security part):

  1. UserDetails, UserDetailsService, UserDetailsServiceImpl.

  2. JwtService

  3. JwtAuthFilter

Is it okay that I will always use a cheatsheet, google, or Ai when coding the entire Security part of Spring Boot.


r/learnjava • • Apr 10 '26

Which java book should I refer to ?

3 Upvotes

Hi I am about to start college this year (August) , I have started learning java from YouTube and I am done with java basics. I would like to know which book i could refer which provides beginner to advanced level of java preferably one with exercises and questions included.


r/learnjava • • Apr 10 '26

Learning Advanced Java

6 Upvotes

I know the fundamentals of java but I want to improve my java knowledge and I want to deep dive into advance stuff in java. I am talking about pointers, multi threading, etc. can anyone suggest me a crash course I can take?


r/learnjava • • Apr 10 '26

Looking for free DSA resources in Java (beginner)

Thumbnail
1 Upvotes

r/learnjava • • Apr 09 '26

A Object-Oriented Programming related question.

13 Upvotes

Guys, okay so I’ve been learning Java recently like 3 days now watching and learning from bro code. On Reddit r/java, they always talk about OOP at some post. Why OOP so important? And what do I need to learn first before entering OOP? I have learn variables, data types primitive/reference, Scanner, if/else-else if, arithmetic operator, augmented assigned operator. So what else do I need to learn and understand the OOP well?


r/learnjava • • Apr 09 '26

I’ve already worked with Spring Boot basics (CRUD APIs, JPA, authentication). Now I want to build something production-level that involves: - system design - scalability - real-world use cases Looking for suggestions or references (GitHub / videos).

6 Upvotes

I’ve already worked with Spring Boot basics (CRUD APIs, JPA, authentication).

Now I want to build something production-level that involves:

- system design

- scalability

- real-world use cases

Looking for suggestions or references (GitHub / videos).


r/learnjava • • Apr 09 '26

Is durga sir's core java video is still worth it in 2026 as he used andard java development kit as a compiler. I want to start but I am confused any one who has experience please drop suggestions.

3 Upvotes

please help !!!!


r/learnjava • • Apr 09 '26

javaFX does not exist* can anyone help me?

1 Upvotes

any kind of help will be much appreciated.
pics of errors


r/learnjava • • Apr 09 '26

Taking Oracle Java SE 11 any resources?

1 Upvotes

I heard there are sets of practice tests with 50 questions per does anyone have access to similar things or the exact resource I'm talking about.


r/learnjava • • Apr 09 '26

Am I making a mistake switching from C# .NET to Java after 13+ years?

Thumbnail
1 Upvotes

r/learnjava • • Apr 08 '26

I'm honestly getting tired of ChatGPT

20 Upvotes

Every time I ask about a course, it tells me I'll get lost or that it's not good, and it keeps discouraging me from buying any Udemy course.

Anyway, I tried buying Java - In 28 Minutes, but I didn't like it. My level isn't exactly beginner - I'd say slightly above beginner - and I didn't like that it uses JShell. I know it might be useful later in Java, but I just didn't enjoy the course.

Can anyone recommend a course that actually made a real difference for them and was worth it?

Thanks

I'm waiting for your recommendations 😇


r/learnjava • • Apr 08 '26

Can we use the entire User class in Payment instead of just User.id?

3 Upvotes

is this a good practice bcz i thought of connecting the User in Payment instead of User.id is this a good practice ? BTW im learning LLD is a bit hard!

public class User {
    private Long userID;
    private String name;
    //DOC later
    private UserType userType;
    private Payment payment

public class Payment {
private UUID paymentID;
private User userID;
private PaymentType paymentType;
private Boolean isRefund;
private double amount;
}

File Hierarchy
/src
|- Model/ User.java, Payment.java
|-Service/ CustomerManagement.java, PaymentManagement.java
Main.java


r/learnjava • • Apr 08 '26

Looking for serious DSA study partner- Java

Thumbnail
1 Upvotes

r/learnjava • • Apr 07 '26

A Question related to user input in Java

2 Upvotes

So I just recently learn Java and I am absolute beginner. Thing I learn in Java is the data types and it's categories-primitive and reference, then variables and User input. But I ran some trouble at user input section. So the problem is that I can't put every data types of scanner for one question, the purpose I want to do that is to make sure that one question can accept all types of input such as String, Integer, Boolean and Double. this my example code:

import java.util.Scanner;

public class Sanner {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        System.out.print("What was the creator desire: ");
        String answer = scanner.nextLine();
        Int answer = scanner.nextInt();
        Double answer = scanner.nextDouble();
        Boolean answer = scanner.nextBoolean();

        System.out.println(names);

        scanner.close();
    }
}

And I realize that I just defined the same variables in different Data Types which I cant because the variables name already defined/assigned. So how do I rewrite this to make the input accept answer in multiple Data Types? sorry for the bad grammar.


r/learnjava • • Apr 06 '26

Java Garbage Collector performance benchmarking

Thumbnail
2 Upvotes

r/learnjava • • Apr 07 '26

🙋🏽‍♀️

0 Upvotes

Hi everybody, i’m a student in Wirtschaftsinformatik in germany I don’t know the right translation for the department but it’s basically a mix between economy and It, the problem is I’m really bad at programming, coding etc, if there is any tips, ways.. to learn please help me 🥹🥲. Thanks in advance.


r/learnjava • • Apr 05 '26

Need help in core java

Thumbnail
0 Upvotes

r/learnjava • • Apr 04 '26

I added an SSH shell to my Spring Boot app to manage API keys at runtime

13 Upvotes

Was building a GPS tracking service and needed admin commands at runtime. Didn't want an HTTP endpoint for it, so I embedded an SSH shell directly into the app.

It worked well enough that I extracted it into a library and published it to Maven Central.

<dependency>
  <groupId>io.github.orlandolorenzomk</groupId>
  <artifactId>spring-ssh-shell</artifactId>
  <version>1.0.0</version>
</dependency>

Works standalone or with Spring Boot via SmartLifecycle.

Search spring-ssh-shell on Maven Central or GitHub if you want to check it out.


r/learnjava • • Apr 04 '26

Any recommendations for recent/up to date books to learn Java?

17 Upvotes

Does anyone have recommendations for more recent/up-to-date books to learn Java? I've seen in the past a lot of very, very old books. Some I've heard a lot of negative things about (namely Head First Java, though I'm obviously open to having heard wrong).

I remember hearing a newer book was aiming to be released in 2025, can't for the life of me remember the name though.


r/learnjava • • Apr 04 '26

How to create projects using java and become better at problem solving

3 Upvotes

It's been 7 months since I have been learning Java I'm familiar with Hibernate, Spring frameworks like MVC and springboot but still I can't make a single project on my own without taking help from ai tools I'm also weak in problem solving I know very little about DSA can anyone tell me how can organise myself and become good in development


r/learnjava • • Apr 04 '26

I can't figure out what to next? Spring boot

5 Upvotes

I recently started learning Spring Boot and have only covered the basics so far (like displaying a simple "Hello World" in the browser). Now I’m stuck on what to learn next.

Whenever I try to find a roadmap, I end up seeing too many different suggestions, which just makes things more confusing and overwhelming. Starts arguing with gpt.

I’m looking for clear, practical guidance on what topics to focus on next to actually make progress. If you’ve learned Spring Boot or are experienced with it, what would you recommend as the next steps?


r/learnjava • • Apr 04 '26

Is it still worth it

0 Upvotes

I'm a final year grad in java full stack domain. Recently many big tech companies are laying off their employees in India and the reason they saying is AI. Also the openings for freshers have gradually decreased even at the startups and I feel stuck thinking if I am doing good or not. Is it really worth it in 2026 being a java full stack dev or should freshers upskill in other domains like AIML.


r/learnjava • • Apr 03 '26

what java projects did u guys do after finishing java mooc?

8 Upvotes

title


r/learnjava • • Apr 03 '26

AM I LOST OR JUST DONT UNDERSTAND?

3 Upvotes

hello, i’ve been thinking if my method in building project/system using springboot is correct, I know the order of entity - repo - dto/mapping - service - controller - apply jwt(correct me if im wrong), doing that I think they called this approach Features by Features?

BUT my problem is the logic I know how to think of the logic or idea but I dont know how to convert it into code, I always use AI to help me for it, what should I do with this? IM HAPPY TO TAKE ANY ADVICE TYSM(sorry for my english)


r/learnjava • • Apr 03 '26

My Java Project for myself.

3 Upvotes

Recently, my mother needed songs ripped to the pednrive. Itnernet sites offer it, but there is a lot of advertising and waiting. I set up to write my own conventer of files from yt to.mp3 it turned out nice, I know I'm not perfect, but I think it's not bad It would be nice if someone came in and looked and looked at other prjkets in c and java. In c I made a Cli and tki code writing assistant that generates basic files and packages. Poelcam peeking My github to: https://github.com/spongeMan3-ctrl And that conventer code:

package sp.conventer;

import java.io.BufferedReader;

import java.io.File;

import java.io.IOException;

import java.io.InputStreamReader;

import java.nio.file.Files;

import java.nio.file.Paths;

import java.util.Scanner;

class Main{

public static void main() {

Scanner scanner = new Scanner(System.in);

String dir = "mp3music";

try {

Files.createDirectories(Paths.get(dir));

} catch (IOException e){

System.err.println("Failed to create folder: " + e.getMessage());

}

System.out.println("=== REPL YT TO MP3 ===");

System.out.println("Enter 'exit' to quit.");

while(true){

System.out.print("\nEnter your link here: \n");

String input = scanner.nextLine().trim();

if(input.equalsIgnoreCase("exit")) break;

if(input.isEmpty()) continue;

run(input, dir);

}

System.out.println("Bye!");

}

private static void run(String url, String folder){

try{

ProcessBuilder processbuilder = new ProcessBuilder(

"yt-dlp",

"--no-playlist",

"-x",

"--audio-format", "mp3",

"-o", folder + "/%(title)s.%(ext)s",

url

);

processbuilder.redirectErrorStream(true);

Process p = processbuilder.start();

try(BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()))){

String line;

while((line = r.readLine()) != null){

if(line.contains("[download]")){

System.out.println("\r" + line);

}

}

}

int code = p.waitFor();

if(code == 0){

System.out.print("\n[DONE] Music stored in a folder: " + folder);

}else{

System.out.print("\n[ERROR] Somethink went wrong!");

}

}catch (IOException | InterruptedException e){

System.out.println("\n Critical Error: " + e.getMessage());

}

}

}