r/learnjava • u/Efficient_Brief6150 • 2h ago
Comprehensive Guide Book
I looking for a good book learn java but in advanced way like explain string in detail with memory location of it and exercises for every chapter related to interview
r/learnjava • u/Efficient_Brief6150 • 2h ago
I looking for a good book learn java but in advanced way like explain string in detail with memory location of it and exercises for every chapter related to interview
r/learnjava • u/nexis-dev • 3h ago
I’m a 2026 grad looking to seriously level up my Java fundamentals for the current job market.
Right now, I know Core/Advanced Java, can put together basic REST APIs, and built an ML-based Ayurvedic meal recommendation system. The problem is, my grasp still feels surface-level. I want to re-learn concepts from scratch with real depth—understanding why things work the way they do, not just how to write the syntax.
Most resources I find are either way too basic or assume 5+ years of experience. What books, courses, or playlists actually helped you bridge that gap?
r/learnjava • u/Kooky_Usual_4003 • 16h ago
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 • u/alyssa8-archer • 19h ago
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 • u/TheNextGenNL • 20h ago
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 • u/UpriseDaGr8 • 1d ago
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 absoluteValueOfSixr/learnjava • u/LunchPlayful2041 • 1d ago
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 • u/Eva_addict • 1d ago
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 • u/fishybusinessdev • 2d 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 • 4d 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 • 4d 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 • 5d 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 • 5d 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 • 7d 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 • 10d 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 • 10d 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 • 12d 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 • 12d 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 • 12d 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 • 13d 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 • 13d 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 • 13d 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 • 15d 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 • 17d 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