r/learnjava • • Oct 14 '25

Java dev

2 Upvotes

Basically I m learning java and I was using bro code's utube Playlist on java i have finished it i m done with the basics(loop functions oop) but idk what's the next step after that and what resources should I use?? I wanna master backend in java.


r/learnjava • • Oct 14 '25

Suggestion regarding project

0 Upvotes

Can anyone suggest me any backend java project on GitHub through which I can understand the code flow ultimately helping me to learn java and its backend Please help


r/learnjava • • Oct 13 '25

Best way to learn Spring Boot?

36 Upvotes

Hello, I've been studying java for quite a while now and want to study SB as well, but so far both following a couple of (terrible) tutorials on YouTube and studying with Copilot as been basically pointless. Beside @GetMapping, @RestControl, @RequestParam and @PathVariable I'm having a really hard time understanding anything. Does anybody have any kind of suggestions? A good YouTube tutorial or even a free course like the mooc one for java?


r/learnjava • • Oct 13 '25

Having trouble with this JMH Benchmark -- do the numbers match up, or is my benchmark misformatted?

1 Upvotes

Context -- there was a long back-and-forth on /r/programming about Comparing Enums in different programming languages.

I made some benchmarks about EnumSet implementations between Java and Rust.

When I ran these benchmarks by a couple of users, the general consensus was that my benchmarks were flawed because the actual work was being optimized away by the compiler. For example, this comment claimed that some failure in my benchmark was causing the underlying source code to be optimized down to a single OR operation, rather than running the actual code, which is what (I think?) the benchmark is supposed to be measuring.

So, could someone help me and see what I might be doing wrong with my JMH Benchmark here? I have Blackholes consuming just about everything that could be consumed.

For now, let's focus on just a single test -- test1

And here it is, copied inline.

//TEST 1 -- Put elements into an EnumSet

private final EnumSet<Character> test1 = EnumSet.noneOf(Character.class);

@Benchmark
public void test1(final Blackhole blackhole)
{
	
	for (final Character character : characters)
	{

		blackhole.consume(test1.add(character));
		blackhole.consume(character);

	}

	blackhole.consume(test1);

}

And here is the command I use to run all of the tests.

java -jar java/test/target/benchmarks.jar -f 1 -bm AverageTime -tu ns

EDIT -- Forgot to include the benchmark numbers.

Benchmark          Mode  Cnt        Score         Error  Units
MyBenchmark.test1  avgt    5        4.393 ±       0.025  ns/op

r/learnjava • • Oct 12 '25

Memory Management of JVM

8 Upvotes

Hey guys! I'm trying to find a good resource or a youtube video based on this topic but I can't find any one. Everyone teaches only stack and heap that's it. Today I explored something called "Method Area" and I wonder how great I'm learning Java lol :)

Please help me out!!


r/learnjava • • Oct 12 '25

What are some books on java that explains internal workings.

20 Upvotes

I know Effective Java & Java concurrency in practice. What else is there which is not too basic but intermediate ??


r/learnjava • • Oct 11 '25

Online course that specifically covers files/ I/O /JSON files?

3 Upvotes

I need an online course that teaches about working with text files. Tried to use MOOC, but I can't switch JDKs because I need my current one for university assignments. I'm not confident enough in my knowledge to attempt messing with SDKman. Plus, I'm already so behind so I need the information FAST. I can use the official Java documentation, but I'm really hoping there's a decent alternative because damn, that shit's dry.

Context: I'm currently taking a software design course in university and recently bombed a JSON question on the midterm. I did all the assigned reading, attended or watched all the lectures, and I couldn't find when the heck we were taught how to process files. It was briefly touched upon in my Intro to Programming class two years ago, but I was pretty crappy at it even back then.

So I ask on Piazza where I need to be looking, and the professor replies with "it isn't something that is explicitly talked about in any detail." Well, that's no good. So I need to supplement the course I spend $8000 a year to be able to take (I might be a little salty) with something else.

It looks like there's plenty of fantastic resources, but I need something that will go over this topic specifically, and I don't have time to try them all out.


r/learnjava • • Oct 10 '25

I just downloaded Java and need help.

3 Upvotes

At https://www.java.com/en/download/manual.jsp I downloaded Windows Offline (64-bit) and then at the terminal ran java -version and it output:

java version "1.8.0_461"
Java(TM) SE Runtime Environment (build 1.8.0_461-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.461-b11, mixed mode)

The latest is the version 8.


r/learnjava • • Oct 10 '25

Spring boot Project Ideas

9 Upvotes

What are some impactful Spring Boot project ideas that I can build and showcase in my portfolio to demonstrate my skills in backend development, RESTful API design, database integration, and software architecture best practices?


r/learnjava • • Oct 09 '25

Where to start to make a 2d game with Java

3 Upvotes

Hi, I'd like to do a small 2d platformer using swing but I don't know where to start. I also found some well-made tutorials on YouTube, but I'm afraid that I would end up replicating only what is written without actually learning anything and that the project is not really "mine". On the other hand, however, I don't know where to start. Do you have any resources to recommend me


r/learnjava • • Oct 09 '25

First Java Project, trying to learn Java

3 Upvotes

https://github.com/J-a-y-r-a-j/Maintain75
Built an simple attendance tracker for personal, do give the code a look and let me know how i could improve.


r/learnjava • • Oct 09 '25

Spring JPA Specification and Pageable

0 Upvotes

Hello eyerone, I'm here to share my first serious blog post related to Java https://busz.it/spring-jpa-specification-and-pageable-filtering-sorting-pagination/ As you can see it's about using Spring JPA's Specification and Pageable to dynamically filter, sort and paginate results from repo. Previously available articles cover only basic application of Specification without providing generic approach to the matter. That's what I'm trying to accomplish by my blog post. I'll be obliged for any feedback on article, code and idea itself. Thanks in advance


r/learnjava • • Oct 09 '25

Choosing java dev career path

17 Upvotes

Hi i want to learn Java from basic to job ready level.I have about 3-4 years of time to learn.

Provide me some guidance to learn and I'm new in programming.

And what i need to learn


r/learnjava • • Oct 09 '25

I want to learn Java for game development, where should i start?

8 Upvotes

So, i recently watched a small documentary about Minecraft, and i got really inspired and ive wanted to try to learn java for a while now, but i dont know where, and i dont know what essentials i need? i wanna make a game using LWJGL, and i know theres better resources right now, but i think it sounds fun.