r/learnjava • u/Worried_Cap_2142 • 1h ago
我应该继续学习java吗
感觉没什么意义了
r/learnjava • u/fishybusinessdev • 9h ago
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:
r/learnjava • u/EasyCupcake207 • 2d ago
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 • u/Lumpy_Grab2757 • 2d ago
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 • u/Awkward-Movie-2295 • 3d ago
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 • u/MetalCarnival • 3d ago
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 • u/SnooLentils618 • 5d ago
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 • u/Accomplished_Ant4486 • 8d ago
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 • u/Advanced_Active_5105 • 8d ago
Suggest me some good spring security tutorials or learning sources.. i need to implement it to my e commerce backend
r/learnjava • u/One_Butterfly7169 • 10d ago
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 • u/Ksreddy2707 • 10d ago
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 • u/love8evil • 10d ago
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 • u/mujji_99 • 11d ago
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 • u/prashxx • 11d ago
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 • u/randomdude67676767 • 11d ago
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 • u/Quirky-Stretch-1404 • 13d ago
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 • u/fishybusinessdev • 15d ago
I recently released JArray, a Java data structure library I've been working on.
The goal was to build something that combines dynamic sizing, specialized primitive storage, mixed data types, and multidimensional array functionality because I thought it might help me with my game-development, things like inventory, maps, and parsing save files.
it currently uses a whole bunch of primitive arrays, and metadata array to hold values. but i don't know if its better to use a single object array.
I'd appreciate feedback on the API design, storage architecture, and features that would make the library more useful, also any questions about the library.
here's the GitHub to the project. hopefully it doesn't get flagged as promotion: https://github.com/AJ-1-code/JArray
r/learnjava • u/AInoob2pro • 15d ago
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!
r/learnjava • u/CouchResident • 16d ago
import java.util.Scanner;
class Main {
public static void main(String[] args) {
// System.out.println("Try clicking the Run button.");
Scanner scanner = new Scanner(System.in);
System.out.println("What is your name?");
String name = scanner.nextLine();
System.out.println("Hello " + name + " ,lets begin using this calculator ");
System.out.print("Enter your first number:");
int first = Integer.valueOf(scanner.nextLine());
System.out.print("Enter your second number:");
int second = Integer.valueOf(scanner.nextLine());
System.out.println("would you like to add, subtract, multiply or divide these numbers?");
String math = scanner.nextLine();
if (math.equals("add")) {
System.out.println("Result: " + (first + second));
}
if (math.equals("subtract")) {
System.out.println("Result: " + (first - second));
}
if (math.equals("multiply")) {
System.out.println("Result: " + (first * second));
}
if (math.equals("divide")) {
System.out.println("Result: " + (first / second));
}
}
}r/learnjava • u/IndJohnWick • 16d ago
Hey I've been taking training in Java for 6 months. But I have forgotten everything, I do not remember the basic level programming and questions(Armstrong, Palindrome, Stars, Patterns).
Now we are in the spring boot phase and the training is to be completed in 1 and half month.
How to revise java and how to remember everything in the 1 month?
Help or give the tips.
r/learnjava • u/NoBake3354 • 16d ago
Have a fantastic programming life 😎💯😁
r/learnjava • u/One_Butterfly7169 • 17d ago
Hello community! I'm a sixth-semester information systems student, and I really like keys, but I still have a lot to learn. In fact, when I learned how to create a Spring application, I was so confused. My professor tells me to learn so I can correct the AI's mistakes when I notice its excesses and hallucinations, but how can I learn if it seems we won't need to write code anymore, If everything will be automated?! Another point is that I still don't know Python; I know it's an easier language and you can do much more with it than with Java.I don't live in the US, but I want to be good at this, I want to learn and develop projects, automate tasks, including people, and get a good job. I'd like to know from you, what did you do to reach that level? How did you do it? Did you use AI to learn?
r/learnjava • u/DragonFistLimitless • 18d ago
so I tried this code package test.GUI;
package test.GUI;
import static utility.Cout.coutln;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
public class Main{
public static void main(String[] args){
JFrame frame = new JFrame("this is an window:DD");
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(420, 420);
ImageIcon image = new ImageIcon("kuroicon.png");
frame.setIconImage(image.getImage());
}
}
but it seems that the window's icon isn't loading, which I believe is an OS restriction because Ubuntu only loads it's icons from .desktop files and MacOS doesn't support icons on windows at all, can anyone confirm me that is the cause? or there is another thing I am misurdentanding
r/learnjava • u/Icy-Astronaut-2530 • 18d ago
Hey fellas, I am a 3rd year CSE student. I wanted to learn Java as my primary programming language.
I have wasted a lot of my time in Procrastination and tech stack hopping. But now, I have decided to lock in to java as my programming language for software engineering and DSA as my placements will start in about 7-8 months.
My background:-
I have some previous programming experience with c, python, JS, HTML, CSS. I also had a subject named OOP in Java in my previous semester, I know a few things from it, but mostly I studied it for the sake of Exams only. I have made some vibe coded projects in hackathons too, all of them are web applications.
So I wanted to ask what are some good resources in 2026 to learn Java?
I want to learn Java and then later on get into enterprise tech, backend and microservices. I might switch to cloud and Devops later but it's too far to think about now.
My known resources:-
(1) University of Helsinki MOOC course.
(2) Telsuko 63-hour video
Are these resources Good enough for the start? If yes, then Can also list what these lack or don't cover?
Thank you for your answer in advance.
Edit:- Removed the 3rd resource, (3) Telsuko's older Java playlist as it's covered in the resource (2).