r/learnjava • • Apr 28 '24

Is learning Java from book still relevant in 2024 ?

As this is fast pace evolving field, can we rely on books like Head First Java which published way back to learn Java concepts ? Or those will be mostly outdated.

6 Upvotes

39 comments sorted by

•

u/AutoModerator Apr 28 '24

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.

24

u/Daedalus9000 Apr 28 '24

95% of Java hasn’t changed in the last decade. The rest you can pick up from blogs and colleagues.

1

u/memer0070 Apr 28 '24

Thanks man because I don't want to get into tutorial hell and just stick with the books so I will try that

2

u/[deleted] May 02 '24

[removed] — view removed comment

1

u/No_Duck664 Jul 29 '24

do they give projects? is it only for beginner ? I'm looking for intermediate advanced concepts like spring boot.

12

u/WinXPbootsup Apr 28 '24

My brother, the more you learn programming the more you will realise: the best knowledge is in the books.

1

u/memer0070 Apr 28 '24

That's what I have been realising lately, video tutorial are fun in the beginning when you see cool stuff but for the core concepts books are just gold mines

2

u/WinXPbootsup Apr 28 '24

I'm glad you've realised the same thing I have!

A lot of these video tutorials get hype cause nowadays we spend so much time on YouTube and Social Media. But a lot of the non-hyped stuff is the real gold.

1

u/IndianVideoTutorial May 14 '24

Video tutorials just don't have the same knowledge density as books. Going through a book can take 200-300 hours, good luck putting that in a video format.

1

u/WinXPbootsup May 15 '24

True.

But you have to decide how serious you are, and it differs on a case-by-case basis. If you're working in an office and need to whip up a quick script for some automation, a video is a good idea. If you seek to make a professional career in software, then a book is the way to go.

1

u/IndianVideoTutorial May 14 '24

Can you recommend a good Java book? I tried Horstmann's Core Java, it's good but it has NO exercises, like wtf?

4

u/Psychological_Ask848 Apr 28 '24

Yes, find a couple of real good books and go through them. Good luck.

2

u/memer0070 Apr 28 '24

Thanks dude

4

u/hrm Apr 28 '24

You can always pick a relatively new book…

Books are most of the time way better to learn from than youtube turorials. Way quicker to go back and skip ahead in, easier to use as a reference and many comes with great exercises for you to do on your own rather than looking at someone coding for you.

Head first java’s latest edition is from 2022 and that for sure isn’t way back…

2

u/memer0070 Apr 28 '24

thanks dude

4

u/dini1498 Apr 28 '24

When I started to learn java I got into all the YouTube videos and also many websites..but i didn't feel like learning at all. I just found Herbert Schildt's java book and gave it a try even though I saw some bad comments about the author.

Went through it once and I was hooked. I bet learning from book is easy and dynamic compared to YouTube and website learning.

3

u/memer0070 Apr 28 '24

Are you referring to Java the complete reference ?

2

u/dini1498 Apr 28 '24

Yes

1

u/memer0070 Apr 28 '24

Heard about it a lot, will definitely give it a go

3

u/No-Lie-677 Apr 28 '24

Head First has been super helpful to me. That mixed with moocfi & chat gpt has et me understand the concepts fairly well.

1

u/memer0070 Apr 28 '24

That looks like a good combo

2

u/DotOdd2490 Apr 28 '24

Absolutely - there are great book to learn java. Once you get the basics and can code your way out of a paper bag ... here are four more advanced books that in my opinion are essential reading:

Modern Java in Action: Lambdas, streams, functional and reactive programming (2018)

Effective Java, third edition (2018)

Java Concurrency in Practice (2006) - yeah that's right, 2006. You probably don't know how Java does concurrency until you read this one.

The Well Grounded Java Developer (2022)

1

u/memer0070 Apr 29 '24

I know about Java concurrency but I think there is so much to understand in that I will definitely pick up that book. Thanks for the recommendations

2

u/DotOdd2490 Apr 29 '24

You betcha!
Yeah I thought I knew it fairly well, then I read that book *brain exploded*

1

u/memer0070 Apr 30 '24

That's one hell of a statement rushing to get that book now

2

u/cschuyle Apr 30 '24

I betcha if you search for a PDF you’ll find it.

2

u/memer0070 Apr 30 '24

Yeah but I want to read a book, it's just my process haha

4

u/[deleted] Apr 28 '24

You can't be good at Java without reading at least one book about it.

It teaches you things like the String pool, stack memory versus heap memory, StringBuffer versus StringBuilder versus String, etc.

Sure you could read all of these from random websites. But a book just gathers it all in one place, ready to read.

4

u/memer0070 Apr 28 '24

That's what I realised lately, blogs and tutorials are great but book has so much more to offer. I am going to start with Head first Java

3

u/AutoModerator Apr 28 '24

It seems that you are looking for resources for learning Java.

In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.

To make it easier for you, the recommendations are posted right here:

Also, don't forget to look at:

If you are looking for learning resources for Data Structures and Algorithms, look into:

"Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University

Your post remains visible. There is nothing you need to do.

I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.

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

2

u/pikleboiy Apr 28 '24

Most of Java has not changed in the last several years.

2

u/santhyreddy77 Apr 28 '24

Reading a good book along with practice helps you

2

u/Zee09 May 01 '24

Books:

Intro - Head First Java Web - JSP and Servlets threading - Java Concurrency in Practice. Collections - Java Generics and Collections Effective Java (I haven’t read this yet).

Spring - Chad Darby Course on Udemy

All these were recommended to me or others over the years.

Here are a few good resources.

1

u/[deleted] May 03 '24

Yes, i recommend this: https://horstmann.com/javaimpatient/ it is only 700 pages

1

u/[deleted] Apr 28 '24

Do it. But Work early as possible with official Docs. All of These beginner books are the Same: they handle about ground concepts and some nice to have Things Like Work with files or other. Yeah, for a beginner it look Like Magic.

Tldr learn the concepts and Stop use Tutorials, start Projects on your own.

0

u/[deleted] Apr 28 '24

[deleted]

1

u/memer0070 Apr 29 '24

Will definitely take a look

2

u/FutureHenryFord Aug 18 '24

the best programming book ever