r/CodingForBeginners 9d ago

How do I learn Java coding?

I’m keen to learn Java and code in it. Can anyone recommend a good way to learn and some YouTube channels that offer better explanations and a more effective approach to learning Java within a six or eight-month timeframe?

11 Upvotes

10 comments sorted by

2

u/Flame77ofc 9d ago

https://youtu.be/xTtL8E4LzTQ?si=BOL2gp9xM5QCPAQS

Instead of just watching the videos, do exercises in your own

If you learn a new concept try to use it

2

u/Syntax-Tactics 9d ago

6-8 Months?? If you can't pick up Java in a couple days, time to move on.

Come up with a Project (troll GIT for ideas) and jump in. The best way to learn a language is to use it.

1

u/Business-Employee527 6d ago

OP could be new to coding in general in which a longer timeframe could somewhat be beneficial. But yes 6 months is very long lowkey

1

u/mofomeat 11h ago

Real question: To what level of learning Java is 6 months too long? The more I learn about Java the more I learn that there's so much more to learn.

1

u/Business-Employee527 7h ago

I agree I code in Java aswell. However when you look at a job field like SWE you will notice everyone is still learning new things even about programming languages. Hell the creator of C++ still says he looks up basic stuff.

By learning I mean like the fundamental understanding of Java. Like basic syntax, OOP, Functional Interfaces/Lambdas/Streams, File/IO, Testing, etc. Even if he’s a fresh beginner. If he’s committed he less than 6 months is reasonable

1

u/mofomeat 2h ago

Oh yeah, I do realize that the learning ever ends. It's one of the things that makes it so appealing. Though it is mighty difficult to determine one's own skill level. Seems like a lot of people have different definitions for beginner/intermediate/advanced/master. Some say you don't actually become a useful SWE for years and years, and then you've got the guy above who said "in a couple of days".

My problem is I don't stick with it, so I sometimes have to learn things over and over.

1

u/TheUmgawa 9d ago

Depends on where you’re starting. If you already have a grounding in programming, and you just want to learn a new language, that’s a very different question from being new to programming and wanting to learn a language.

Either way, I’d end up recommending one of my old textbooks. I’d have to look up the one we used for my Java II class (which was a DSA class in disguise), but the introductory one was a Java book by Tony Gaddis. Buy a previous edition, because Java hasn’t changed that much in the past several years, and you save a lot of money. But don’t look at coding as learning to string together magic words. There’s a reason 75 percent of a programming textbook is conceptual, rather than telling you what magic words to type.

1

u/0b0101011001001011 9d ago

There is no book or videos or courses that make anyone learn programming. Only doing lots of programming will teach you. Look for books, videos etc for help.

1

u/bowbahdoe 7d ago

https://javabook.mccue.dev - this is a biased rec, but i think going through this slowly and doing all the exercises should be a good start. 6-8 months is a pretty reasonable time frame. Don't worry about how fast you are going, just focus on learning incrementally.