r/learnjava • • 2d ago

Looking for Java Book Recommendations

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! 🙌

11 Upvotes

11 comments sorted by

•

u/AutoModerator 2d ago

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full - best also formatted as code block
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

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

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/MyNameIsRichardCS54 2d ago

Data Structures and Algorithms in Java

Effective Java (I'm still reading this one)

1

u/vague_crossroads 19h ago

Effective Java is a classic. For a solid follow-up, Java Concurrency in Practice really helped me grasp threading

3

u/istarian 2d ago

You're not going to learn much about "practical coding" by reading books, that's something you learn the most about by doing.

2

u/Automatic-Gur2046 2d ago

Horstmann core java

2

u/imharjotsingh 1d ago

Since Java is already your main language, I’d skip beginner courses and move into books that focus more on writing better Java rather than just learning syntax.

Effective Java by Joshua Bloch is probably the first one I’d pick. It’s really good for understanding how experienced Java developers think about APIs, objects, generics, exceptions and overall design.

After that, Java Concurrency in Practice is worth reading once you want to get deeper into threads and concurrency, and Clean Code can help with writing more maintainable code, even though it’s not Java-specific.

For something more practical, I’d also spend time reading real Java projects on GitHub and trying to understand how they structure packages, services, tests and error handling. The biggest jump from intermediate to advanced usually comes from building larger projects and reading other people’s code, not from learning more syntax.

1

u/ITCoder 2d ago

Effective Java is not for newcomers, or even for one at intermediate levels. Head First Java for a beginner. I have read good reviews of Learning Java: An Introduction to Real-World Programming with Java too

1

u/ebykka 1d ago

Seven Concurrency Models in Seven Weeks

1

u/Available_Safe1818 1d ago

If you're looking for intermediate/advanced stuff, I would skip the intro books.

Google for the actual topics you want, not some silly generic thing like 'advanced Java'.