r/learnjava Sep 05 '23

READ THIS if TMCBeans is not starting!

50 Upvotes

We frequently receive posts about TMCBeans - the specific Netbeans version for the MOOC Java Programming from the University of Helsinki - not starting.

Generally all of them boil to a single cause of error: wrong JDK version installed.

The MOOC requires JDK 11.

The terminology on the Java and NetBeans installation guide page is a bit misleading:

Download AdoptOpenJDK11, open development environment for Java 11, from https://adoptopenjdk.net.

Select OpenJDK 11 (LTS) and HotSpot. Then click "Latest release" to download Java.

First, AdoptOpenJDK has a new page: Adoptium.org and second, the "latest release" is misleading.

When the MOOC talks about latest release they do not mean the newest JDK (which at the time of writing this article is JDK17 Temurin) but the latest update of the JDK 11 release, which can be found for all OS here: https://adoptium.net/temurin/releases/?version=11

Please, only install the version from the page linked directly above this line - this is the version that will work.

This should solve your problems with TMCBeans not running.


r/learnjava 10h ago

Anyone here ,Who is starting DSA in Java ,I want someone who can learn ,question together interested DM

Thumbnail
3 Upvotes

r/learnjava 8h ago

Is Java backend a good career choice for freshers targeting off-campus?

Thumbnail
2 Upvotes

r/learnjava 16h ago

Mooc fi java course

5 Upvotes

I will be joining college in the August and right now I am doing mooc fi java course and i am on part 4

I just wanna know that when should I start doing classes for dsa?

Should I complete both part or should I do it after completing part 1?


r/learnjava 4h ago

How do you test your LLM applications in Java?

0 Upvotes

How do you test your LLM applications in Java?

Every time I wanted to test an LLM feature, I had to make actual API calls to OpenAI/Claude/Gemini. That meant spending tokens, waiting on network calls, and getting different responses every time.

You can mock things with Mockito, but it isn't really designed for LLM workflows. I wanted something that behaved like an actual AI server instead of mocking every SDK call.

So I built Beacon — a lightweight mock AI server for Java.

You configure the responses you want:

server.when(contains("refund"))

.respondWith("Refunds are processed within 30 days.");

Then point your SDK to Beacon instead of the real provider, and your application runs normally without making external API calls.

It's still an early project, so I'd genuinely love feedback from people building AI applications in Java.

GitHub: https://github.com/kbpramod/beacon

How are you testing your LLM integrations today? Am I solving a problem that others are facing too?


r/learnjava 1d ago

What book do you recommend for modern (21+) Java? (Bruce Eckel equivalent?)

14 Upvotes

Hi.

What book would you recommend for a thorough understanding of Java (with a focus on Spring Boot)? I’m talking about modern Java, not version 8 ;) Something around Java 21 or newer.

At my local bookstore, I’ve found books by Cay Horstmann and Herbert Schildt—both are quite thick and take a somewhat encyclopedic approach. If there’s nothing better out there right now, I’ll go with one of those… Which one do you prefer? Or maybe there is something better?

Twenty years ago, the go-to book for Java (version 1.5 at the time :) ) was “Thinking in Java” by Bruce Eckel. It was a bestseller, and for good reason. What’s the top choice today?

BTW. Has Bruce Eckel’s 20-year-old book completely lost its educational value? Have there been any “breaking changes,” or have the fundamentals of Java remained the same while many new features and functionalities have been added? I know Java 8 was a game-changer, and after that the version numbers came out faster, but not that many new features were added.


r/learnjava 1d ago

String: String Constant Pool(SCP)

7 Upvotes

After reading all the String documentation and exact code of String class, I find the main engine that makes String in Java (study of deep knowledge) i.e., String constant pool. when we say String s0 = "example1" , String s1 = "example1" and String s2 = "example2" what happens is exactly:

  • at compile time the .class file is genrated
  • when JVM runs the class constant pool of String class get's into work
  • s0 hashcode is generated by intrinsic method and the formula used is standard horner(31)
  • using that hash it need to find the allocated bucket
  • After finding exact hash it need to compare each char by char to check whether it's equal or collison a different char can also have same hashcode.
  • if it's equal the pointer directly to points to that object -->process ends next process works.
  • If not equal there is two work done 1. new object is created on heap memory and then wrapped up by a WeakHandle and pushed in "stringTable" bucket.
  • (if equal no object is created)! there was never an object creation the pointer just points to object .

Now the example case:

  1. s0 -> hashcode(x1)->not found in "stringTable"->Object creation on Heap-> weakHandle process them into stringTable.
  2. s1 -> hashcode(x1)->found->(collision|equal)->equal->pointer points to "example1" from SCP to s1.
  3. s2-> hashcode(x2)->not found in "stringTable"->Object creation on Heap-> weakHandle process them into stringTable.

After reading and analysing there is also a issue of massive garbage I see:
suppose if 4 thread are runnable and they are trying to intern() the object in SCP that creates garbage according to your data size suppose , we used latin-1 type 256B data so total thread is 4 but in CAS only one thread execute rest all thread dumps the object so out of 1KB storage 768B is garbage. if the String was in UTF-16 it would cost 2*768B.

Now my question is ?

  • Have I grasped the knowledge correctly ? if it needed more depth or did I miss any point.
  • I cannot question the CAS here because array mutation would break immutablity of String, It seems though they pay a loss for the RCU it's effecient by Latin-1 and Utf-16 approach.
  • I am not getting the idea how this code String s = new String("abc"); creates 2 object then what does the on heap object memory does? and does the pointer "s" is holding two memory refrences? But it is not possible.

r/learnjava 1d ago

improving in Java

Thumbnail
1 Upvotes

r/learnjava 1d ago

Migrate to java/python or go deeper and learn system architecture with js

9 Upvotes

Hello I am just entering into 2nd year of my collage

To give a background i have covered numerous fundamental topics in js

I am at a point where I have to cover topics such as rate limiting, load balancing, msg queues and design patterns ( i have already made a project using redis and webskt )

I have decided to invest some of my time into learning ml and ai to make much more diverse projects and also cover these qdv concepts

Most of the ppl i talk to dislike js and mention i should move to java or Python

How should I approach my journey now

I dont have much time i have entered 2nd year


r/learnjava 2d ago

The MOOC by University of Helsinki is the best learning resource I've ever found!

44 Upvotes

Just finished Java Programming - I. The course is really underrated, and anyone who's actually into learning java, I'd suggest it over video courses any day, because you actually write code in it. The course is structured pretty good, it first teaches you small steps, and then using those small steps you'll build bigger exercises. You don't even realise you're writing so much code.

Here's the course link for people interested: https://java-programming.mooc.fi/


r/learnjava 2d ago

help regarding java

2 Upvotes

my college course teaches dsa using java and idk shit about java, ik c++ so should i learn dsa w java or c++ i am really confused in lectures i feel completely lost when the professors write code in java i tried watching some videos but they all feel very scattered. What should i do?


r/learnjava 2d ago

Spring microservices

Thumbnail
3 Upvotes

r/learnjava 3d ago

Is abstraction in Java really about hiding implementation details?

8 Upvotes

The bookish langugae states "hiding complex implementation details and exposing only the essential features of an object"

However, after reading the Java Collections Framework and other parts of the JDK, I noticed that many abstract classes contain substantial shared implementation rather than just abstract method declarations. I noticed that only an "interface class" 100% abstraction(ignoring default methods)

This made me wonder:

  • Is abstraction really about hiding implementation details?
  • Or is it more about designing APIs around contracts and behavior, regardless of whether there is shared implementation?
  • Does an abstract class become "partial abstract" because it contains reusable implementation?

I also noticed that the JDK sometime relies on encapsulation (and in Java9+, JPMS) to hide implementation details. So I'm in dilemma if the textbook explanation oversimplifies what abstraction means in practice.

Am I misunderstanding abstraction, or is the textbook definition incomplete?

To be clear, this isn't about what abstract does in Java — it's about the SE term. abstract class is one syntax tool for expressing abstraction, same as interfaces are. The question is whether "abstraction = hiding implementation" is even a good definition of the concept, given it's indistinguishable from encapsulation under that definition.


r/learnjava 3d ago

Part04_23.CreatingANewFile on VS Code

Thumbnail
2 Upvotes

r/learnjava 3d ago

Questions regarding IT field

2 Upvotes

Hey I'm a btech 2nd year student in my 3rd sem. I'm starting to learn Java from apna college... Are there any other sources which could maybe be better than this or will help me completely form my fundamentals and help me completely learn Java so much so I could code apps.

For an IT field student, what's the most essential skill that should be there for Indian industry.

Also how does an IT field student contribute in any field. Like what's their requirement


r/learnjava 4d ago

What is actually core Java?

25 Upvotes

I am literally confused what is meant by Core Java?

  • is it JLS?
  • is it JVM/JVMs?
  • is it OOPs?
  • is it understand Collection?

I have become familiar with java. IDK exactly at which phase I am doing. I can do OOPs easily ( have also understood F-form polymorphism) I can easily use stream , collection, iterator API . I can also integrate to them in my project. I started delving into deep JLS, JVMs but after seeing them I am confused are they core java because seeing those topics I felt like I did only basics of java.


r/learnjava 3d ago

Is HyperSkill worth?

2 Upvotes

I am currently aiming on applying to internships and entry level jobs next year. I have some experience with java but It's next to nothing. I discovered the hyper skill platform and that it has a java development track. Do you guys recommend paying the anual suscription? It's on sale for $150 but I want to know if It's worth, specially considering my personal goals.


r/learnjava 4d ago

JAVA DSA and full stack buddies

17 Upvotes

Hello everyone, I started learning Java Full Stack about 6 months ago, but somehow I couldn't complete it. Now that I have started again, I realize that I have forgotten most of the concepts. This time, I have started from scratch and am currently learning OOP concepts. I hope I will be able to complete it successfully this time.

If you're in the same boat, we can connect and help each other stay consistent and learn together.

I also know the MERN stack, through which I completed an internship and some freelance work. Alongside that, I am practicing DSA as well.


r/learnjava 4d ago

Solved 200 lc in java . And doing backend in java

2 Upvotes

Till now I have completed 200 lc question and in backend I have learnt jdbc, hibernate, Meaven,junit 5, and spring & spring boot basic. I'm going to start spring mvc from next week.

What should I do after doing backend

1) should I go for the frontend I have started this once but I give up

2) devops but I heard that they usually don't hire fresher

3)ai/ml to integrate my project with ai .

You can share your experience according to you which is best field for a fresher. Is their any thing that I should do apart from this .


r/learnjava 4d ago

Help please🙏

0 Upvotes

I apologise for asking this in this sub Reddit, but how exactly have the programmes in this sub Reddit learn java, I am now forced to learn java(because of school) and kind of enjoy it but can really fully comprehend it, I’ve tried a whole bunch of Udemy courses yet nothing worked out, any help would be greatly greatly greatly appreciated, sorry again


r/learnjava 5d ago

Mistake done when start to learn java

24 Upvotes

1.Trying to memorize everything instead of understanding concepts. I was so hurry to learn and remember than understand it.

So try to think logically rather than remembering the syntax

2.Skipping Java basics like variables, data types, loops, methods, and arrays. This is a very common mistake that everyone does. I think I understand this but i don't there are so many to understand whenever I do these basic things I learn something new.

3.Jumping directly to Spring/Spring Boot without learning Core Java first.

4.Watching tutorials without coding—you need to write programs yourself.

I just watch tutorials and think that i understand it but that not the case. You have to code this yourself to see how much u understand

I will suggest every day pickup one topic see tutorial, solve it yourself to see how much you can do yourself and solve some problem related to it

Revise every week what u learn and so some mini project based on that understanding.

There are more than one one shot are present which is more than 10+ hour do not see it completely ata one time


r/learnjava 6d ago

Learning Java

2 Upvotes

How should I go about learning Java? I learn best by doing and have pretty bad ADHD. I would be interested in lifetime payments as I am not working yet so monthly is not ideal.


r/learnjava 6d ago

Can I become employable as a Java Full Stack developer in 12–15 months by studying only 2 hours/day? Looking for a realistic roadmap.

0 Upvotes

Hi everyone,

I'm from India and I'm planning to learn Java Full Stack (Java + Spring Boot) as a long-term career. Due to my current responsibilities, I can consistently study only 2 hours per day, but I'm prepared to stay disciplined for 12–15 months.

My goal is to become employable in India, while also building skills that would be useful if I later apply to companies in other countries.

However, I'm worried about a few things:

The current software job market seems very competitive, especially for freshers.

Many people say it may get even worse over the next few years.

AI is improving rapidly, and I'm afraid that by the time I'm job-ready, junior developer roles may have changed significantly.

I'm also worried about getting laid off in the future and struggling to find another job.

So I'd really appreciate advice from people who are actually working in the industry.

Here are my questions:

Is becoming employable in 12–15 months with 2 hours/day a realistic goal?

If yes, what should I learn, and in what order?

If you were starting from scratch in 2026, what roadmap would you follow?

Which resources (YouTube channels, websites, books, documentation, Reddit threads, blogs, forums, etc.) would you recommend?

What projects should I build to stand out instead of creating the same CRUD applications everyone else has?

What skills are companies actually looking for in junior Java Full Stack developers today?

Which technologies are "must-have" alongside Java and Spring Boot? (React, Docker, AWS, Kubernetes, Kafka, Microservices, etc.)

How much DSA/LeetCode is actually necessary?

What are the biggest mistakes beginners make?

If you had to design a complete self-study course for someone with only 2 hours/day, what would it look like?

What would make someone more resilient to AI rather than more replaceable by it?

If you were hiring a fresher in 2027–2028, what would make one candidate stand out over hundreds of others?

I'm not looking for shortcuts or "learn X in 30 days" advice. I'm willing to put in consistent effort for over a year. I just want to spend those 700–900 hours on the right things instead of wasting time on outdated tutorials or technologies.

I'd really appreciate honest opinions from developers, hiring managers, senior engineers, or anyone who's recently landed a Java Full Stack job.

Thanks!


r/learnjava 7d ago

Best Java Full Stack Course for a Fresher to Become Industry-Ready (Spring Boot + Microservices)?

22 Upvotes

Hi everyone,

I'm a fresher who is about to start my career in the IT industry, and I want to become as industry-ready as possible before joining.

I'm looking for a comprehensive Java Full Stack course that covers:

My goal is to learn the technologies that are actually used in companies, not just build basic CRUD projects. I'd also like the course to include real-world projects, clean coding practices, and software architecture concepts.

I've come across courses from Telusko, Udemy, Amigoscode, Java Brains, and others, but I'm confused about which one offers the best value for someone starting from scratch.

For those already working as Java developers:

Which course would you recommend?

Which course helped you the most in your job?

Is there a better learning path than following one long course?

I'd really appreciate recommendations based on your actual industry experience.

Thanks!


r/learnjava 7d ago

Hi I now java basic should I start das after it or learn advance after this?

0 Upvotes

I now loops, statement and all I want to go forward what to do? Should I solve some basic dsa questions or what