r/learnjava • • Mar 13 '20

Made by own TicTacToe game! It's quite well done if I dare say so :D

70 Upvotes

Finally completed my implementation of a 2 player game of TicTacToe. I've been programming for a while now, but completing this from start to finish does feel good, given my tendency to leave things in Limbo.

The github repo is : https://github.com/ShubhamD32/TicTacToe

Any suggestions or feedback will be greatly appreciated!

EDIT : In accordance with the feedback, I have tried to implement some of them. The updated post link : https://www.reddit.com/r/learnjava/comments/fibo73/updated_my_tictactoe_game_feedback_appreciated/


r/learnjava • • Sep 08 '25

Completed Java MOOC – Any similar high-quality course for Spring Boot?

69 Upvotes

Hey folks,

I recently finished the Java MOOC course and honestly, it was amazing – probably the best thing I’ve done to actually get Java. Super well-structured, lots of hands-on stuff, and it just clicks.

Now I’m looking to dive into Spring Boot so I can start building some real-world web apps. Is there anything out there that’s like the Java MOOC but for Spring Boot? Preferably something that’s practical and not just theory dumped on slides.

Its better if its free but even paid it's fine


r/learnjava • • Mar 28 '23

ChatGPT is having an impact on my learning but it is positive or negative?

69 Upvotes

I've been learning Java for 2 months. First month and a half I was learning the basics of programming on Udemy to better prepare for my college Java course. My course started 2 weeks ago and I've been studying almost everyday, doing all the work from college and all.

I used ChatGPT a lot in the last week or so and my code became way more effective, I realized how to better use some stuff I already knew. And added some stuff I didn't know about.

I'm wondering whatsoever if I should really be using chatGPT. A lot of the code I've been doing was only possible because of the AI. I wonder if I should instead be struggling more to "learn the hard way" . I'm afraid this constant use of AI will hurt my learning process in the long run.

Important to note that I ask the chat to always explain the things before I implement into my code and I avoid using stuff I don't understand yet.

What do you guys think?


r/learnjava • • May 02 '20

Getting back to Java

69 Upvotes

Getting back to Java after a year or so of not touching it. I completed a bootcamp that was teaching Java and Spring framework mostly. Right now im taking the Spring & Hibernate for Beginners (includes Spring Boot) course . What are other resources , course etc. to take to refresh upon my java skills and be confident to get a job as entry level java dev?

Thank you!


r/learnjava • • Nov 22 '21

I wanna find friends coding in Java

68 Upvotes

Hi, everyone!

I`ve been learning Java for 3-4 month (before that there was experience creating layouts using HTML, CSS and JS) and i want to find who is doing this too to develop together.

I`ll be glad to your feedback.


r/learnjava • • Oct 30 '21

Failed intro to CS. Am I dumb?

68 Upvotes

Hey guys.

As the title said I failed my university’s intro to CS class. for some reason it is extremely difficult and a lot of students fail. I don’t know why but the exam is 10 times harder than everything we were thought in the lectures.

They expect people that never coded before to get to the point where they solve 5 LeetCode medium and even hard questions in a 3 hour test in just 4 months time. (they take the questions for the test from LeetCode and GeeksForGeeks)

It’s seems like the student’s who pass with good grade are the ones that coded since they were 12 or just plain geniuses.

But enough with the whining, I requested one more chance to take the test(so I won’t have to repeat the course) and my request was accepted.

this is my last chance and I HAVE to do well. The test is in 3 months.

This intro to CS course is in Java.

So what are the best resources or ways to get really good at:

• Binary Trees (Preorder,Inorder,Postorder,addition and removal of nodes, finding target node, sum of nodes values)

•Recursion (on arrays,2d arrays and strings)

• linked list & doubly linked list (traversal, addition and removal of nodes)

•Polymorphism (everything related basically)

• Big O algorithm LC type questions

Worth knowing maybe that the entire test is with pen and paper and nothing else.

Would appreciate any advice you guys have!


r/learnjava • • Jan 12 '21

Java Interview Questions and Answers

68 Upvotes

Came across this while preparing myself, you can refer to this if you are preparing for Java interview. Hope you find this useful. :)


r/learnjava • • May 18 '19

New growing discord for mentoring in Java, JavaScript, C#, Python, C++, C

68 Upvotes

Are you willing to put effort into learning a new language? Are you searching for someone to guide you through these difficult times? Join our discord, Garbage Collectors, and start your journey!

We offer some guidance for JavaScript, Python, C#, Java, C++ and C.

***Mentors are welcome too!***

Note that this server is not meant for people to ask questions only. This discord is meant for long-term guidance.

https://discord.gg/bhSwuDS


r/learnjava • • Jul 12 '18

Intermediate Java - A Learning Path - Part 1

68 Upvotes

Hi @all,

as the question "what should I learn next" pops up quite regularly when trying to learn Java, I decided to publish a fun, interactive, tutorial/learning path to become an Intermediate Java programmer.

You'll basically learn how to build a mp3 'archiving' program from scratch and learn a whole lot of things along the way: Core Java, JDBC, Servlets and much more.

Check it out here:

https://www.marcobehler.com/guides/java-intermediate-learning-path-1/

Comments are much appreciated!


r/learnjava • • Sep 23 '25

Java 25: Proof the Development Team Actually Listens to Developers

67 Upvotes

Java 25: Proof the Development Team Actually Listens to Developers

Java 25 represents a masterclass in listening to developer feedback. After analyzing years of community requests, Oracle has delivered 18 JDK Enhancement Proposals that directly address the pain points developers face daily.

The "Finally!" Moments

No More Boilerplate Hell

JEP 512: Compact Source Files eliminates the ceremony that's frustrated beginners and annoyed experienced developers writing small utilities:

Before:

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

After:

void main() {
    IO.println("Hello World!");
}

This isn't just about beginners. Senior developers constantly write small scripts, command-line tools, and proof-of-concept code. The old ceremony was pure friction.

Import Sanity at Last

JEP 511: Module Import Declarations solves the "where the hell is that class?" problem:

Before:

import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executors;
import java.util.stream.Collectors;
// ... 15 more imports

After:

import module java.base;
// Done. Everything you need is available.

This is particularly valuable when prototyping with AI libraries or integrating multiple frameworks.

Primitive Types Finally Work Everywhere

JEP 507: Primitive Types in Patterns (Third Preview) eliminates the arbitrary restrictions that made pattern matching feel incomplete:

switch (value) {
    case int i when i > 1000 -> handleLargeInt(i);
    case double d when d < 0.01 -> handleSmallDouble(d);
    case String s when s.length() > 100 -> handleLongString(s);
    default -> handleDefault(value);
}

AI inference code becomes dramatically cleaner. No more boxing primitives just to use pattern matching.

Performance Wins That Actually Matter

Memory Footprint Reduction

JEP 519: Compact Object Headers reduces object headers from 128 bits to 64 bits on 64-bit systems. This isn't theoretical - it's a measurable reduction in memory usage for real applications.

Chad Arimura showed a Helidon upgrade from Java 21 to 25 that delivered 70% performance improvement with zero code changes. That's the JVM doing heavy lifting so you don't have to.

Startup Speed Improvements

JEP 514 & 515: Ahead-of-Time Optimizations tackle the cold start problem that's plagued Java in cloud environments:

  • JEP 514: Simplifies AOT cache creation

  • JEP 515: Shifts profiling from production to training runs

Your containers start faster. Your serverless functions respond quicker. Your CI/CD pipelines run shorter.

AI Development Made Practical

Structured Concurrency That Actually Works

JEP 505: Structured Concurrency (Fifth Preview) addresses the "thread soup" problem in AI applications:

try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
    var modelInference = scope.fork(() -> runModel(input));
    var dataPreprocessing = scope.fork(() -> preprocessData(rawData));
    var validation = scope.fork(() -> validateInput(input));
    
    scope.join();           // Wait for all
    scope.throwIfFailed();  // Clean error handling
    
    return combineResults(
        modelInference.resultNow(),
        dataPreprocessing.resultNow(),
        validation.resultNow()
    );
}

If any task fails, all tasks are cancelled cleanly. No thread leaks. No hanging operations.

High-Performance Vector Operations

JEP 508: Vector API (Tenth Incubator) provides SIMD operations that actually work:

var a = FloatVector.fromArray(SPECIES, array1, 0);
var b = FloatVector.fromArray(SPECIES, array2, 0);
var result = a.mul(b).add(bias).toArray();

This compiles to optimal vector instructions on supported hardware. Essential for any serious AI work.

Thread-Safe Data Sharing

JEP 506: Scoped Values replaces ThreadLocal with something that actually works with virtual threads:

static final ScopedValue<UserContext> USER_CONTEXT = ScopedValue.newInstance();

// Set once, use everywhere in the scope
ScopedValue.where(USER_CONTEXT, currentUser)
    .run(() -> processRequest());

Lower memory overhead, better performance, and it actually works correctly with millions of virtual threads.

Security That Doesn't Get in Your Way

Post-Quantum Cryptography Building Blocks

Oracle's PQC strategy is methodical and practical:

  • JEP 510: Key Derivation Function API - Now final, provides quantum-resistant foundations

  • JEP 470: PEM Encodings - Preview API for modern authentication systems

The approach mirrors how Oracle introduced TLS 1.3 - build it right at the tip, then backport when standards are final.

Better Monitoring Without Overhead

JEP 509, 518, 520: Enhanced JFR provides production-ready monitoring:

  • More accurate CPU profiling on Linux

  • Cooperative sampling that doesn't impact performance

  • Method timing and tracing for finding bottlenecks

You can finally profile production systems without fear.

The Ecosystem Responds

The Java ecosystem has noticed. Major frameworks are embracing Java 25 features:

  • Langchain4j: Hit 1.0 GA with virtual threads and agentic mode

  • Spring AI: 1.0 GA with enhanced model integration

  • Embabel: New agentic framework designed for modern Java

These aren't toy projects - they're production-ready frameworks built by teams who understand how developers actually work.

Developer Tooling That Works

VS Code Extension Excellence

Oracle's Java extension for VS Code has 3.8 million downloads and a perfect 5.0 rating. It supports:

  • Early access builds

  • Preview features with explanations

  • Immediate support for new JDK features

  • Integration with AI coding assistants

The tight integration between language designers and tooling teams shows. You get support for new features the day they're available.

Interactive Learning

The Java Playground at Dev.java lets you:

  • Test features without installation

  • Share code snippets via links

  • Experiment with early access builds

  • Learn interactively

Teachers can create exercises and distribute them instantly. No more "works on my machine" problems in computer science courses.

Real-World Impact

College Board Partnership

The AP Computer Science A exam now uses modern Java. Students learn current syntax, not legacy patterns. This matters because it means new developers enter the workforce with modern Java skills.

Enterprise Adoption Patterns

Oracle's "tip and tail" release model lets enterprises:

  • Tip users: Get new features immediately

  • Tail users: Stay on LTS with stability

Java 25 is the next LTS release with 8 years of support. Enterprises can upgrade on their timeline while developers get immediate access to new features.

The Developer Experience Difference

Java 25 eliminates friction at every level:

  • Beginners: Can write useful programs without understanding complex concepts

  • Scripters: Can write command-line tools without ceremony

  • AI developers: Get first-class support for parallel processing and vector operations

  • Enterprise developers: Get better performance and monitoring without code changes

Looking Forward

The draft JEP for Post-Quantum Hybrid Key Exchange in TLS 1.3 shows Oracle's forward-thinking approach. They're building quantum-resistant capabilities now, before the standards are final. When quantum computers become a threat, Java applications will be ready.

Why This Matters

Java 25 proves that the development team actually listens. Every major feature addresses real developer pain points:

  • Verbose syntax? Fixed with compact source files

  • Import complexity? Solved with module imports

  • Pattern matching limitations? Eliminated with primitive type support

  • Memory overhead? Reduced with compact object headers

  • Cold start problems? Addressed with AOT optimizations

  • AI development challenges? Handled with structured concurrency and vector APIs

This isn't feature bloat. It's a surgical improvement of the developer experience.

The Java team has demonstrated something rare in enterprise software: they understand how developers actually work, and they're willing to make substantial changes to improve the experience.

Java 25 drops September 16th. The improvements are real, measurable, and immediately useful. After 30 years, Java continues to evolve to meet the needs of developers.


r/learnjava • • Aug 24 '25

Passed OCP Java SE 17 with 82%!

67 Upvotes

I finally did it. After about 1 month of prep (while working, 4+ years of experience in Java):

📖 1 week reading the study guide

📘 2 weeks going through the practice book

🧑‍💻 1.5 weeks training with Enthuware mocks

And I passed with 82%.

My Enthuware Scores: Standard Tests (16 total): Avg 76% Unique Tests (4 total): Avg 72% Overall: 75.2%

1 month was enough for me because I had prior Java experience, but honestly the Enthuware mocks were the real game changer


r/learnjava • • May 06 '22

I am learning Spring (Boot). Can you point me please to some github repo examples with clean code and good practices to understand how a good app is crafted?

67 Upvotes

I like to see examples


r/learnjava • • Feb 14 '22

What projects have you built while you were learning Java?

67 Upvotes

I have been learning the language for 5 months now and have been loving it. I made a gui-less tictactoe game, built a lot of "banking" type projects though the University of Helsinki's MOOC, got into guis through swing and JavaFX and built a BMI program which taught me a lot, branched into android and built myself an app using NASA's API which taught me so much more. Throughout my learning journey, everything went smoothly except for one thing which has caused me the most trouble, and that is finding a project to build.

I am learning Java for my AP Computer Science exam which focuses mostly on Data structures and algorithms, and so thinking of projects to build that focus on that is extremely hard for me and ends up causing me so many hours of wasted time on looking for something to build.

EVERYTHING I can think of that seems interesting to me contains some sort of gui element that would have me work on the interface more which I want to do the opposite of.

I have looked through every projects list there is on the internet.

Would you please recommend me projects that you've built earlier on in your Java learning journey?

Thank you in advance.


r/learnjava • • Dec 09 '21

how much java I need to know to be job ready

67 Upvotes

I learned a lot of java these past 2 years through college and I feel comfortable using it (arrays , lists ,Queue , Stack, OOP , inheritance , linked lists ...)

now my question is how much java should I know to be job ready

like I heard about spring boot being one of the best options to learn and unit testing

wanted to have your opinion guys where I should start from here

note : up until now I did not try any framework or unit testing or made any apps with java all I did was solve algorithms and learn what the core language has to offer so I want to expand on that now


r/learnjava • • Oct 28 '20

Everyone claims IntelliJ is the better IDE, Why are almost all tutorials (Udemy, YT, etc.) in eclipse?

67 Upvotes

Can I follow a tutorial in IntelliJ when the tutor is using eclipse?

Also, some good tutorials to learn maven?


r/learnjava • • Jul 18 '20

Spring Boot and Microservices

67 Upvotes

All,

If you are looking to learn about Spring Boot and Microservices, I wrote a simple book https://gumroad.com/yogsma#JwOXf . It is available for free to download.

I will be happy to answer any questions.


r/learnjava • • Aug 01 '19

Tips to Become a Better Java Developer

67 Upvotes

r/learnjava • • Dec 02 '24

Is there any good resource for JAVA and SPRINGBOOT, like there is cherno for C++ ?

66 Upvotes

I am a software developer, and my current tech stack includes Node.js, NestJS, and TypeScript. Now, I want to learn Java and Spring Boot. Are there any good free resources that teach Java in-depth? Also, considering I already know C++ and JavaScript/TypeScript, how much time do you think it will take for me to become proficient in Java?


r/learnjava • • Sep 14 '21

Blind Java student seeking IDE reccomendations, general advice. Any help appreciated.

66 Upvotes

Hi, guys. I did a quick search in the sub but did not find anything. Apologies if this info has been requested previously. I am taking Java for the second time in college. I ran into a host of accessibility issues the first time around, ended up withdrawing. Over on r/blind, it was recommended that I use VS Code as an accessible IDE. And although it did work for a while last year, not sure if it was an update but it seems totally inaccessible at the moment. As nothing compiles. I’ve also tried working repl.it to no avail. Perhaps I’m just not very good? If any blind programmers are able to make this website work, please contact me or float some tips my way. These issues seem beyond the scope of the accessibility department, my professor and the programming lab at my school. Google has not been of much help. Also, if any blind programmers have any recommendations regarding resources that are accessible using NVDA or JAWS, please let me know. Many thanks!


r/learnjava • • Jun 03 '21

Who are you? Why are you on this subreddit and what are your goals?

66 Upvotes

I am wondering who you guys are. Are you computer science students, trying to learn java? Are you highschool students trying to learn something? Are you maybe working in a totally different field and just code for fun? Professionals who like to learn? Professionals with different knowledge and wanna add java to your portfolio?

Just curious.

I'm an mechanical engineer with a slight interest in coding (wrote a python script for work once) who hopes that one day, I can maybe switch fields.


r/learnjava • • Feb 23 '21

General questions about Java's and its career prospects...

66 Upvotes

Hi, thanks for reading my post.

Most of my programming background thusfar has been mostly web development so I've spent a lot of time developing using JavaScript and most recently JS + TS. But I want to improve my programming fundamentals and decided to pick up Java since it seems to be a good language when trying to learn OOP concepts.

Originally, I always pictured Java as some super complex programming language (at least compared to JS) but after looking at some Java code it doesn't look as initimidating anymore. I'm currently going through the highly recommended MOOC.fi course.

I think eventually I will want to try to find a job as a Java developer but I have a few questions.

Is there such thing as an entry level Java developer job?

It seems for almost all Java jobs you will be working on enterprise systems and most job postings I've seen so far require years of experience and expertise knowledge of the Java language and the Java tools and ecosystem. Are there any job opportunities for self taught Java developers? Will companies even consider hiring a self taught developer with 0 Java experience? Do these large companies ask leetcode type questions?

What is Spring Boot's learning curve like and how does it compare to other popular web frameworks?

I've used a bunch of MVC frameworks in the past including RubyonRails, Django, Laravel and others. I've also used Node/Express. From what I've read Spring Boot is super complex which requires a bunch of configuration just to get things working initially. Approximately, how long would it take to learn Spring Boot fundamentals for someone with my background? What should I be able to perform when using Spring Boot in order to consider myself "proficient"?

What kind of projects can I build to showcase my Java knowledge?

What kind of personal projects should I build that would showcase my Java knowledge to companies? Do I build a backend using Spring Boot, a Java GUI application? CLI tool?

Which of these Java related tools/technologies is considered a MUST HAVE?

Java Developer @ large bank (taken from a local job posting).

You can demonstrate experience in:

  • 2+ years of Java application development and support.

  • You can clearly demonstrate technical understanding of Java/J2EE, Spring Framework, WebLogic/JBoss, SQL, SOAP-XML/REST-JSON, GitHub and Maven/Ant.

  • You have work experience in Agile, Iterative and Software Delivery Life Cycle (SDLC).

  • Ideally, you have strong verbal & written communication skills, demonstrating the ability to articulate yourself clearly to technology partners.

  • It’s nice to have experience ideally within the banking industry and previous exposure to Jenkins/Confluence, Junit, Design Patterns/JVM Internals, Docker/OpenShift, Artifactory and any other development or devops tools.

Seems like a lot to know.


I would appreciate it if some of my questions can be answered. Thanks


r/learnjava • • Dec 09 '20

How to find relevant programming Projects to improve.

66 Upvotes

Hey guys, so I’ve been programming in java for some time (more than 6 months and it‘s not my first language) and I’m kind of stuck now. I‘m used to do text book exercises and some small projects but i feel that I’m not improving because I can‘t find any ideas of projects that are useful for my resume and at the same time help me improve my skills. I tried Codewars at some point and some open source projects but it‘s still complicated for me. All the tutorials I find online are wether for total beginners or for really experienced coders. Do you have an idea how an intermediate programmer can find projects to work on ? Or project ideas to do from scratch. I did also learn Python and I’m stuck at the Same Level as Java. If you guys know what to do next please let me know. I thought about learning a third language but I’m pretty sure that it‘s not gonna help me improve now. PS I’m still a student and i want to work on a portfolio that i can put on my resume as soon as I’m done studying.


r/learnjava • • Jul 02 '20

Is it worth to learn Java without a degree since many university students learn programming with it?

66 Upvotes

Hello! Java is the most demanded programming language in my area (Barcelona, Spain) and I think it's a good idea to learn programming with Java but I have seen that many graduates know Java so companies will hire them before me as a non-graduate noob.


r/learnjava • • May 04 '20

Data Structures and Algorithms courses for a non CS student?

66 Upvotes

I've been trying to reinforce my knowledge about basic Java having recently completed a project on hyperskill (after going through most of CS106A last summer), now i'm looking to get better and perhaps more "formal". I've tried the Princeton algorithms course on coursera and i just could not go on, It made me feel dumb as hell and that was literally the first assignement of the first week. Is there something more "outsider friendly"? or am I asking for the wrong thing all together? I've been told i should just "work on something you like" but i honestly don't have much project ideas nor do i feel ready to tackle the problems posed in lots of code challenges..

P.S: i prefer a well integrated MOOC course - a fine mix of lectures, readings to reinforce the lectures and a decent assignment system, i found it hard to just follow a book on my own