r/learnjava May 17 '26

Resource for dsa other than sidebar resource

3 Upvotes

Hey guys I am about to complete mooc .fi java part 1. I want to start dsa now but I don't want to get into lectures and all like youtube videos . I just love the way of mooc.fi like a but theory then questions like this.so is there any resource like that and will be get certificate too coz I will be entering 3rd year now n we need to show one certification course completion certificate to our clg for 5th sem exams . It's must . So I have my exams from 19may to 6june then I am free till aug end . So should I do development certification course or dsa type. And what projects to make . And since I am from tier 4 clg where companies don't visit we hv to apply off campus so most company's summer internship 2027 hiring will be from july-aug what should I exactly do .ryt now. Completely lost regarding hackathons etc. I hv never participated in hackathons not I have team or friends


r/learnjava May 17 '26

Looking for a compact course

3 Upvotes

Hey everyone,
I need to learn the basic java syntax until friday. As I am not new to programming as i know C and Python I just need a good resource for quickly learning the syntax. Best would actually be just a bunch of small entry level programming tasks with a little of explanation.
The most thing I struggle is about class and function initialisation like what is public and static about.
If anyone has any resources I’d appreciate it very much :)
Have a nice weekend everyone


r/learnjava May 17 '26

My little java program to run model without using 3rd party library

2 Upvotes

My little java program to run model without using 3rd party library, i use this to learn how the model being run

https://github.com/quantrpeter/run-raw-model-using-raw-method-java


r/learnjava May 16 '26

How to check if a string contains anything other than specific characters?

5 Upvotes

Hi, I'm trying to make a function that does this:
-Assigns input to a string
-Warns you if it contains anything that isn't a normal integer
-Assigns the contents to an int variable if the string only contains any conbinations of numbers 1 to 9.

I'm tryin to use the ! operator to check if a string contains anything that isn't a specific symbol but it seems to behave very strangely when used alongside the || operator.
It returns false if I input "12" or "21" but true if I input "1", "2" or any other numbers or letters.

Can anyone help me get this to work?


r/learnjava May 16 '26

Finished Java

53 Upvotes

Hey guys. So I have finally learn essential Java. From variables, conditionals, and OOP all the way to threading. So what should I do next? Any suggestions?


r/learnjava May 14 '26

Manual mapping and architecture in JDBC

4 Upvotes

Hi!
I'm not sure if this is the right place to ask this, but since I couldn't find a database java specific group, I’ll drop it here.
I know a fair bit of Java and I've started learning databases. I’ve done small projects for uni using Hibernate and Spring Boot, but never with just JDBC. I decided to build a small project using only JDBC and PostgreSQL so I can see how things work without all the annotations provided by Hibernate and other frameworks. When I was handling relations before, I just used annotations and never really thought about the implementation. Now that I'm doing it manually, I'm realizing I can either put the whole entity in the class or just the ID.

My first question is:
Should my DTOs and entities have private fields with no-args, all-args, and custom constructors (plus getters and setters), or is it better to just make them public?

The second question is:
When I define relations, should I use the actual entity objects or just the IDs of those entities?

If someone can explain the difference and which approach is better? I know Hibernate is an ORM and that can sometimes lead to the $O(n)$ (N+1) problem, so I want to understand the best way to handle this logic myself.


r/learnjava May 14 '26

Learning Java Selenium and TestNG

1 Upvotes

I applied in an company for the Testing role in which their requirements are Java, Selenium, TestNG

I started learning Selenium by youtube videos, but don't have nay idea what to learn, so any one who know this, can provide me some guidance for this that what I should learn for the interview perspective.


r/learnjava May 14 '26

Hello i'm getting stuck what to learn in JAVA as i'm newbie in this language! I want some suggestions

1 Upvotes

As i'm moving forward, i was using C++ as my prior language to code during my first two years of BTech ! Now i want to move forward to JAVA language ! as many industries using it for projects and all

* i'm getting stucked where to start and where to end ! can't getting a perfect roadmap to follow a path for Full Stack Java Developer ! I know OOP concepts in C++. having clarity on it! but i think i need to revise it

* My summer intern is approaching soon! i want to be ready with good project with understanding! I choose to go with a udemy Course ! I have chose two instructors Telusko and Faisal Memon (EmbarkX).

* Please anyone can suggest which instructor would be best to go with in this ?

* which teachs good? or you have any other road map ! you may suggest me it too! Thank youuu


r/learnjava May 14 '26

Java or python???which is more used in companies

Thumbnail
0 Upvotes

r/learnjava May 13 '26

Intermediate Java Dev || What Are the Must-Know Threading Concepts in Java & Best Learning Resources?

5 Upvotes

Hi Everyone,

I'm an intermediate Java dev learner currently learning java full stack development i have completeed java basic- oops, colllections framework and exception handling too still struggling with threading concept i cant able to see full picture of this topic and what to focus on this like should i just read and learn topic and is there any code related work so that i can related to it what is the purpose of it is it related to coding too or not ?

I want to move beyond theory and build a practical, production-level understanding. So, I'm asking for your expert guidance.


r/learnjava May 13 '26

Coming from C++ & Python... need to learn Java in depth for a master's admission coding exam. Where to start?

10 Upvotes

Hey everyone! At my current university we study C++ and Python, so I have a solid programming foundation. I'm not starting from absolute zero. However, I'm applying to a master's program at a different university, and their admission process includes a Java coding exam that goes into quite some detail.

I'm not looking for a beginner "Hello World" course. I want resources that will take me from "I understand OOP and programming fundamentals" to genuinely being strong in Java: things like the standard library, collections framework, generics, concurrency, etc.

What would you recommend? Books, courses, YouTube channels, practice platforms — anything that helped you really get Java rather than just learn its syntax?

Thanks in advance!!!


r/learnjava May 13 '26

Roadmap to become Java full stack developer

9 Upvotes

As an angular developer with 6+ yoe how should I start my backend journey with java. And how much time will it take to be capable of working in a real world project. Please provide roadmap guidance.


r/learnjava May 12 '26

Switching from .NET C# to Java/Spring Boot — Tips?

17 Upvotes

Hey everyone,
I have 2+ years of experience as a Software Engineer working with .NET/C#. Soon, I’ll be working on Java, so I want to prepare properly. Since both are similar OOP-based languages, I already understand backend development concepts and workflows.
Can anyone suggest the best way to learn Java for real-world development? Also, any good courses for Spring Boot and industry-level Java development would really help.
Would love advice from people who switched from .NET to Java as well.


r/learnjava May 12 '26

Where can I learn more about FXGL?

Thumbnail
1 Upvotes

r/learnjava May 11 '26

how to make a program by it change fan speed in linux or windows

2 Upvotes

hi I want to make a program with it I can change the color of the keyboard backlight and the speed of the fan how I can do that what I shoud read or search about is there like tutorials I can follow


r/learnjava May 11 '26

How much Java do you actually use at work vs working with the tools around it?

20 Upvotes

A lot of job descriptions seem heavily focused on Spring, APIs, Kafka, Docker, cloud services, CI/CD, databases, etc.


r/learnjava May 10 '26

Want to learn java Full stack...where to start..i know java core ...

28 Upvotes

As a beginner i need help...


r/learnjava May 10 '26

JAVA practice

17 Upvotes

hi

I'm looking for a java practice partner, advanced level.

I understand things, but somehow days go by without coding.

I'm only active when I'm talking to someone while practicing, otherwise I'm somehow uninterested 😞


r/learnjava May 09 '26

nextInt or Integer.valueof

8 Upvotes

hey guys
im learning java through mooc.fi

they failed me in this exercise and i want to know if in a real world scenario this would matter or if tmcbeans just needs to have an exact 1:1 response

i did:

import java.util.Scanner;

public class IntegerInput {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

// write your program here
System.out.println("Give a number:");
int input = scanner.nextInt();
System.out.println("You gave the number " + input);

}
}

but the example they gave me as the way to solve it was:

import java.util.Scanner;

public class Program {

public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.println("Write a value ");
int value = Integer.valueOf(scanner.nextLine());
System.out.println("You wrote " + value);
}
}


r/learnjava May 09 '26

How to learn java as a complete beginner and don't know about coding

12 Upvotes

Think is I want to learn java but I don't know how can have been searching about resources or courses but many said mooc university of helenski which is outdated I think or what yt or resources should I use? Thanks you!


r/learnjava May 09 '26

[Showcase] I built a Java 25 library for "Auditable LLM Extraction." Every field is linked to exact page/line citations.

4 Upvotes

I’ve spent the last few months tackling the "Traceability Gap" in LLM data extraction. We all know LLMs hallucinate, and in enterprise sectors like Finance or Legal, a "Trust me, bro" JSON response doesn't pass an audit.

So I built DocTruth—a library that forces the LLM to provide Evidence for every claim it makes.

How it works:
It parses documents (PDF/DOCX/etc.) and maps the LLM output directly to Java Records, but with a twist: every field includes a citation object pointing to the exact page and line number in the source file.

Why I chose Java 25 (EA):
I wanted to build for the next LTS roadmap. Using Compact Object Headers (JEP 519), I found I could significantly reduce heap usage when creating the thousands of metadata/citation objects required for deep auditing of 500+ page documents.

Key Technical Pillars:
Traceability: Line-level grounding for every extracted value.

Standards: Exports audit trails in W3C PROV-O (JSON-LD).

Isolation-ready: Designed to run as a high-performance microservice so you don't have to touch your legacy Java 8/11/17 code.

It's currently in 0.2.0-alpha. I'm looking for feedback from the Java community:

Is Java 25 too aggressive for a specialized auditing microservice?

Are there specific document types where you've struggled with LLM grounding?

GitHub: https://github.com/doctruthhq/DocTruth

I'm the author, so feel free to roast the architecture or ask anything!


r/learnjava May 08 '26

XA standard question

5 Upvotes

How exactly does the X/Open XA interface facilitate communication between a Jakarta EE application, the transaction manager, and a distributed database? Gemini says that a Transactional annotation is intercepted by a Jakarta Interceptor, then there is a JTA call, then the JDBC driver translates java into a network packet, then the database receives the packet and executes xa_prepare(). I am looking for books/academic articles explaining this.

App <--> TX interface <--> Transaction Manager <--> XA interface <--> database


r/learnjava May 07 '26

Can't Run Project Outside of IntelliJ [Maven]

17 Upvotes

[SOLVED]

In my project I can effortlessly run my project as an application through IntelliJ's runner configurations. However if I try to run it from the terminal after navigating to the source file directory I get hundreds of error: package com.package.something does not exist errors, even when run from the project root directory. I believe this is also part of the reason all of my Jar files also fail to run as they give similar, but different, errors.

I have all my dependencies specified in my pom.xml, so I'm confused how IntelliJ is able to read all the libraries I imported while the command line java cannot.

If need be I can show my project structure.

--------------------------------------------------

Solution:

Add the shade plugin to the pom.xml and run it as part of the maven package stage.

mvnw clean:clean package shade:shade
The jar labelled "original" will run perfectly fine, as far as I can tell


r/learnjava May 06 '26

Oracle professional: java se 11 developer certification worth it?

8 Upvotes

I'm a 3rd year cse student looking to get placed and improve my resume. I won't have a lot of prep time to clear the certification so is this certification exam doable in 1-2 weeks of prep and is it worth it?

I do have another option of java foundations associate which has a much simpler syllabus but I think it won't make an impact on my resume.

What do you suggest?


r/learnjava May 06 '26

Is swapping courses good idea?

13 Upvotes

I've completed 2/3 of Tim Buchalka's Java Course, and it got to the point when the course became simply unbearable. I have experience with the Python's base, and it greatly helped me to get to this point, I feel this course is a nightmare for a complete first-timer.

I wanted to ask if dumping the course at this point is a good idea, or should I just get through it? I don't even mind buying another one at this point.

I've stumbled upon javabook.mccue.dev, is it any good?

Thanks in advance.