r/learnjava • • Sep 05 '23

READ THIS if TMCBeans is not starting!

49 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 • • 6h ago

Looking for Java Book Recommendations

6 Upvotes

Hey everyone!

I recently graduated, and Java is my primary programming language. I want to take my knowledge to the intermediate/advanced level.

I prefer books and reading materials over video lectures.

Can you recommend some good resources that cover both theory and practical coding?

Would love to hear what worked for you! 🙌


r/learnjava • • 10h ago

Is Java still one of the best choices for new projects?

9 Upvotes

Java has been around for almost 30 years and is still a big player in enterprise development. With virtual threads, records and pattern matching, the language has also improved a lot in recent years.

Still, Kotlin, Go and TypeScript often get picked for new backend projects instead. If you started something new today, would Java be your first choice? Why or why not?goei


r/learnjava • • 9h ago

most of our open vulns need a spring boot 3 upgrade to fix. how are you handling that?

2 Upvotes

had basically this convo with my manager last week

"why are these criticals still open"
"because fixing them means getting off spring boot 2"
"so do that"
"it's a lot of services, half have no real tests, and it's javax to jakarta plus security config plus hibernate changes"
"ok but the criticals"

so yeah. spring boot 2 has been out of open source support for a while, so a lot of the fixed library versions just don't work on what we're running. we can't patch our way out of it.

someone suggested moderne/openrewrite to do most of the migration automatically. sounds nice, but i have no idea how it holds up on our code, which is pretty messy. the other idea is doing it one service at a time, internet facing stuff first. or we only deal with the ones where the vuln is actually reachable. our appsec lead has a rival security trial going so maybe that helps sort which ones, maybe not, we'll see

anyone done this migration with security breathing down your neck? what order did you go in, and did the automated tools actually save time


r/learnjava • • 20h ago

Best Website/Download to learn Java (willing to pay)

6 Upvotes

Does anybody know good websites to learn Java, considering I already know most of the basics? I want to refresh myself on various classes (e.g., Scanner) and learn new skills. Along with that, if it offers courses in other languages such as Python or C++, that would be great.


r/learnjava • • 16h ago

What is wrong with this code? MOOC.FI

2 Upvotes

So this piece of code is for finding the absolute value:

import java.util.Scanner;


public class AbsoluteValue {


    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
         int num = Integer.valueOf(scanner.nextLine());
         if(num < 0){
            num = (num*(-1));
         }
            System.out.println(num);
    }
}

But TMC MOOC.FI is showing this error:

TestMyCode
Some tests failed on the server

Need help?

Points: 0.00%

...

x

Test passed!

AbsoluteValueTest absolute ValueOfNegativeThree

Test passed!

AbsoluteValueTest absoluteValueOfSix

r/learnjava • • 1d ago

Where can I find documentation that actually describes anything? Dev.java and docs.oracle were not useful.

3 Upvotes

I am learning using Deitel's book and I wanted to get a deeper understanding of a few concepts. Mainly how some methods work but I can't find a good resource for that. I even read the recommendations thread but I can't find what I want there.

I want something similar to the book where I can see examples and not just some text saying: "This method takes an argument and returns another one" with no deeper explanation.


r/learnjava • • 1d ago

Building My Custom Data Structure Library Feed-Back pt. 2

0 Upvotes

A while ago, I posted about a small project I was working on for fun: a Java library for N-dimensional array storage and manipulation.

Originally, I made it for my own game, but eventually decided to put it on GitHub in case anyone else found it useful. I posted here to get feedback, suggestions, and criticism, and I ended up learning quite a bit from the comments.

Since then, I've made several changes, reconsidered some of my original design decisions, and released a new version.

I'd love to get some more feedback: What's good? What's bad? What could be improved? Are there any questions you have about the library or its implementation? I'm open to constructive criticism and suggestions.

I know this kind of library isn't for everyone, and that's perfectly fine. Some people will prefer working directly with Java arrays or existing collections, and I understand that. I'm mainly interested in hearing what you think of the implementation, API, documentation, and overall usefulness.

I'm also interested in feedback on the presentation. I got some comments about the README being hard to read(kinda defeats the purpose, huh?), so I've redesigned it and added more information. Hopefully, that helps.

Anyway, here's the GitHub:

https://github.com/AJ-1-code/JArray


r/learnjava • • 3d ago

best resources for java?

7 Upvotes

hi guys. i just finished my 1st sem of college and wanna learn java now. i had C in my first sem but dont have a good hand on it. what and from where is best to learn java from? i was thinking to start learning from gpt or claude. please help me out , there are too many resources and im not able to choose from where do i start.


r/learnjava • • 4d ago

from Java beginner to experienced developer

28 Upvotes

I'm currently learning Java and built some CRUD application so far. i have heard from many experienced developers that building projects alongside learning is one of the best ways to improve your skills.

I'd love to hear your suggestions. what beginner friendly projects would you recommend that i can work on to gain practical experience and learn new concepts along the way?


r/learnjava • • 5d ago

Looking for Java study partners! I'll teach one chapter daily from my Core Java handbook — (30-60)-minute online sessions

55 Upvotes

Hey everyone!

I'll be starting my Java preparation from tomorrow, and I'm looking for a few serious study partners who would like to learn Java together.

(I already know Java at B.Tech College Semester exam level but I'm Starting from scratch again for my backend goal which needs strong depth and understanding beyond college level)

My plan is to cover one chapter every day from a comprehensive Core Java handbook.

(I can guarantee this won't be any ordinary handbook or also not any dense textbook that is hard to read,this has everything that is needed from scratch to Interview-Ready level but also excluding the irrelevant things--The curriculum is given below ,go through it once and anyone who knows even basic Java would understand how good of a curriculum it is)

Along with studying, I'd like to conduct a **daily 30-minute online session(session length can vary accordingly )**through Google Meet, Zoom, or any other convenient platform.

How this will work--

I'll study one chapter every day.

We'll have an online session daily.

I'll explain that day's chapter properly, covering concepts, examples, internals, and practical understanding.

(I speak fair-enough English and can explain a topic clearly from the scratch)

You can ask questions, discuss doubts, and participate.

We'll help each other stay consistent and accountable.

I am a person who just reads and moves forward,

I don't stop and revise what I've learned.

So,for me, teaching will serve as a revision and help me strengthen my understanding. For you, it'll be an opportunity to learn Java through structured explanations rather than just passively watching videos or reading documentation.

About the handbook

The handbook is titled:

Core Java Handbook — From Zero to Interview-Ready (Spring Boot & DSA Track)

It's designed for someone starting from scratch who wants to use Java as their primary language for Spring Boot backend development and DSA/coding interviews.

The baseline is Java 21 LTS, with Java 22–25 changes called out where they matter.

This isn't just a basic Java syntax guide. It covers Java from fundamentals to advanced concepts, collections and DSA, concurrency, I/O, and finally bridges into Spring Boot and production backend engineering.

Here's the complete curriculum:

Part I — Foundations

Part 1: How Java Works — JDK, JRE, JVM, Bytecode, Class Loading & JIT

Part 2: Program Structure — Source Files, Packages, Imports & main

Part 3: Primitive Types, Variables, Casting & Overflow

Part 4: Operators — Arithmetic, Relational, Logical, Bitwise & Shift

Part 5: Control Flow — Conditionals, Switch, Loops (+ Exceptions Primer)

Part 6: Methods — Overloading, Pass-by-Value, Varargs & Recursion

Part 7: Arrays — Memory Layout, Utilities & DSA Patterns

Part 8: Strings, StringBuilder & Text Blocks

Part 9: The String Pool, Interning, Compact Strings & Hashing

Part 10: Floating Point — IEEE 754 in Practice

Part 11: BigDecimal & Exact Decimal Arithmetic (Money)

Part 12: Regular Expressions

Part 13: Console I/O & Fast Input for Competitive Programming

Part II — Object-Oriented Java

Part 14: OOP Concepts — The Four Pillars

Part 15: Classes & Objects — References, this, static

Part 16: Constructors & Initialization Order

Part 17: Wrapper Classes, Autoboxing & Their Traps

Part 18: Access Modifiers, Encapsulation & Modules (JPMS)

Part 19: Inheritance, Polymorphism, Abstract Classes & Composition

Part 20: Nested, Inner, Local & Anonymous Classes

Part 21: The Object Class — equals, hashCode, toString, clone

Part 22: Interfaces — Default, Static & Private Methods

Part 23: Exceptions I — Hierarchy, try/catch/finally, try-with-resources

Part 24: Exceptions II — throw/throws, Custom Exceptions & Best Practices

Part 25: Generics — Bounds, Wildcards, PECS & Erasure

Part 26: Enums, POJOs, JavaBeans & final

Part 27: Immutable Classes & the Singleton Pattern

Part 28: Records & Value Objects ("Parse, Don't Validate")

Part 29: Sealed Classes & Interfaces

Part 30: Pattern Matching & Result Types

Part 31: JVM Memory, Garbage Collection & Reference Types

Part 32: Lambdas, Functional Interfaces & Method References

Part III — Collections & DSA

Part 33: Collections Framework — Overview & Choosing a Collection

Part 34: Iterable & Iterator

Part 35: ArrayList (and the Legacy Vector)

Part 36: LinkedList & Linked-List DSA Patterns

Part 37: Comparable & Comparator

Part 38: Queue, Deque, ArrayDeque, PriorityQueue (and Stack)

Part 39: The Map Interface

Part 40: HashMap Internals

Part 41: HashSet & LinkedHashSet

Part 42: LinkedHashMap & Building an LRU Cache

Part 43: TreeMap & TreeSet

Part 44: EnumMap, IdentityHashMap, WeakHashMap

Part 45: Java for DSA — Toolkit, Templates & Pitfalls

Part IV — Functional Data Processing

Part 46: Optional

Part 47: The Streams API, Collectors & Gatherers

Part V — Concurrency

Part 48: Threads — Creation, Lifecycle, Interruption, Daemons

Part 49: Race Conditions, synchronized & Deadlock

Part 50: The Java Memory Model & volatile

Part 51: wait, notify & Producer–Consumer

Part 52: ThreadLocal & ScopedValue

Part 53: ReentrantLock, ReadWriteLock, StampedLock & AQS

Part 54: Atomic Variables, CAS & LongAdder

Part 55: CountDownLatch, CyclicBarrier, Semaphore, Phaser

Part 56: Executors & Thread Pools

Part 57: CompletableFuture

Part 58: Concurrent Collections & BlockingQueue

Part 59: Virtual Threads & Structured Concurrency

Part 60: Concurrency Interview Problems (Worked Solutions)

Part VI — I/O & Everyday APIs

Part 61: Date & Time (java.time)

Part 62: File I/O — Streams, Readers/Writers & the Files API

Part 63: Serialization — Java Serialization vs JSON (Jackson)

Part 64: NIO — Buffers, Channels, Selectors & Memory-Mapped Files

Part 65: Networking — Sockets, HTTP & HttpClient

Part VII — Bridge to Spring Boot & Production

Part 66: Reflection, Annotations & Dynamic Proxies (How Spring Works)

Part 67: JDBC, Transactions & Connection Pooling

Part 68: Error Handling in Backend Services

Part 69: JVM Observability, Troubleshooting & JMH

Appendices

Appendix A: SOLID Principles & Design Patterns in Java (with JDK/Spring examples)

Appendix B: Java Versions at a Glance — Java 8 → 25, JDK 26/27 and Spring Boot 4

Appendix C: Randomness, UUIDs, Hashing & Password Storage

The handbook intentionally does not cover unit testing (JUnit 5, Mockito) and build tools (Maven/Gradle) — those will be learned alongside Spring Boot.

My goal

I'm working toward becoming a Backend Engineer, and my long-term learning path includes Core Java, Spring Boot, DSA, system design, and building production-level backend applications.

I want to build strong fundamentals before jumping into frameworks.

This is for Beginners who want to learn Java at serious depth or learners who knows College level Java and want to learn it properly for Backend Development or anyone else .

All I ask is that you're genuinely interested in learning Java and willing to be consistent.

If you're interested, comment below or DM me. We can create a small group and start tomorrow.


r/learnjava • • 5d ago

Is it possible to make an ascii level with java

0 Upvotes

Hey, I´m new to java, but I already know python. I want to make something fun for myself, so I was thinking about making a simple ascii game, like Rouge if you know that game. The idea is that each symbol is the same as a tile in say, a sokoban game. So when you walk onto a symbol, the symbol changes to be your character symbol.

Thank you in advance


r/learnjava • • 7d ago

Studying Buddy

4 Upvotes

Hey. As the title suggests I am looking for a study buddy.

I have been away from work for a while due to some personal circumstances. Preparing for interviews is always feels boring and exhausting. I wanted to give a try to study buddy option as I work well in groups.
Feel free to message me directly if interested.
Ideally this is not for complete beginners but someone with at least some experience either learning or also interview preparing.

Edit: also if not interested could you share your experience in finding a study buddy successfully?


r/learnjava • • 9d ago

Need advice regarding java leaning path

5 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/learnjava • • 10d ago

Security

0 Upvotes

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


r/learnjava • • 11d ago

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

5 Upvotes

Lo que busco es un curso completo,porque los que he visto en youtube,lo que hacen es implementar el login con google y github para acceder a la api,pero tengo la duda de como hago controlo roles y permisos con los login de oauth2 ,como implementar lo que hacen las paginas web,de que si el usuario no exite,una vez que loguee con google o github,se cree la cuenta en bd,ademas de permitir loguear con la cuenta en bd,o tener la opcion de usar esos provedores de authenticacion


r/learnjava • • 12d ago

Create a local server

12 Upvotes

I'm working on a client-server project for college, and I have an intermediate level of Java knowledge. I'd like to know what I need to learn to create this server. I wouldn't want to using AI to do all this, just to clear up any doubts. Is there any documentation for this, websites, YouTube channels that you recommend?


r/learnjava • • 12d ago

[Study Partner] Beginner learning Java backend, open to people from any country

14 Upvotes

Hi! I'm from India (IST, UTC+5:30) and just starting Java backend: core Java first, then Spring Boot. Looking for study partners from anywhere, especially Asia (Japan, Korea, etc.) since our timezones overlap well.

Plan:

- ~2 hrs a day, evenings IST

- Daily progress check-ins on Discord

- Code together over voice sometimes and help each other with doubts

- Later, build a small project together

Any level of English is totally fine. Comment or DM if you want to join!


r/learnjava • • 12d ago

Looking for the best Java DSA tutorials and a roadmap to transition into LeetCode

8 Upvotes

Hi everyone,

I am looking for recommendations on the best resources to learn Data Structures and Algorithms (DSA) in Java, with the goal of building a strong foundation for solving LeetCode problems.


r/learnjava • • 13d ago

Sources to study Java, and how to study it?

31 Upvotes

I'm studying Java in universitiy, and sometimes my doctors could be really bad at teaching, so whatcha got another sources ? Like youtube channels, or websites? Also I don't know how to start and study tbh😅


r/learnjava • • 13d ago

Anyone who is into enterprise Java backed projects?

6 Upvotes

Hey everyone,
I’ve been working as a PHP developer for a while and have been steadily building up my backend skills in the Java ecosystem (Java, Spring Boot 3, Microservices, Kafka, Redis, PostgreSQL, Docker, AKS, and Observability etc..).

To make the switch to a backend/Java role, I want to put a genuinely production-grade enterprise project on my resume—something that avoids "resume-driven" over-engineering and actually solves real business constraints

By understanding its architecture, which solves business problems, and practice follow up questions on them

If you are into real project who is currently working.
Can you please help me on this.

Thanks in advance


r/learnjava • • 12d ago

use of ai to help me learn java

0 Upvotes

Hello!!

I was wondering if there is any AI plan that is really useful to learn Java.

I've been learning with free tutorials and stuff like that, but I was thinking that it would be really helpful for me to use an AI that supervises my work and, even more important, gives me problems to solve.
What I'm looking for is not an AI that does my homework for me. I want real, meaningful learning. It should guide me with hints, questions, and clues instead of just writing the code for me. I also want it to give me problems to solve, adapted to my level.
Like, once I master loops, it introduces arrays, then ArrayLists, etc., without jumping ahead.
Basically, I want a tutor, not a code generator.
Is there a specific AI plan, or a specific way to prompt ChatGPT / Claude / Gemini / etc. to make it behave like that? I’ve been thinking about using Claude, but Claude Max is expensive, and I dont know if lower plans are worth it (maybe the tokens are too low idk).

Thanks a lot!!


r/learnjava • • 14d ago

Backend engineering

5 Upvotes

How should I start learning java ? Currently I am doing striver dsa playlist in cpp and 30-40 questions in leetcode. Tell me in detail pls🙏🏻🙏🏻. How to start, what should I learn, which playlist should I follow everything


r/learnjava • • 17d ago

Best books for learning java in 2026

33 Upvotes

I'm looking for a Java book that covers everything from beginner to advanced levels.

I'd prefer a book that explains concepts in simple, easy-to-understand language, with clear examples and practical exercises.

If you had to recommend just one book that provides a comprehensive understanding of Java, which one would you suggest?

Thanks!