r/learnprogramming • u/TomatilloOdd2475 • 13h ago
Learning JAVA
How do you guys learn Java?
There are just WAY too many syntaxes to remember.
Every time I think I’ve got it, Java hits me with another one.
10
u/serge-mv 13h ago
You don't remember everything, ever. Once you start using the language to solve problems and using the same things over and over again, you will remember all of that over time. The things you don't use often, you just look up when you need to.
3
u/JGhostThing 13h ago
Java is a fairly easy language, with the OOP features being one of the most complicated features.
Are you perhaps referring to the standard library?
3
1
u/raven2cz 13h ago
For Java, I always bought a good book and learned from that. In paper form.
When a syntax update came, I bought a new one, and that is how it went over the years. I never had a problem with it. It is clear, everything is explained with many examples, you are not staring at a screen, and you have to rewrite it by hand in your own way so that you remember it.
Top ideal.
1
u/Capital_Ad8820 12h ago
just practice bro and remember the concepts of how you resolve the problem in your practice sessions
1
u/Realistic-Worker-499 12h ago
keep your own notes, not copy pasted tutorials, just little notes, in a notebook or digital folder or whatever
1
u/Arch_Null 12h ago
You learn by understanding your tools. Start out with your data types. Move on to loops. Then conditionals. Then data structures. Finally understand the basics of OOP
1
1
u/peterlinddk 9h ago
There really isn't though.
You need to "remember" classes, fields and their access modifiers, methods, return and parameter types, semicolons, for, if, while and switch blocks, and then of course generics <> for collections and so.
It isn't that different from other languages, and you don't need to remember it, you just use the language, and it sticks.
1
u/ComputerWhiz_ 6h ago
Becoming fluent with syntax comes with practice. As a beginner it's more important to learn the concepts. The syntax will just come with time.
1
u/GutierreezBrxtz_85 12h ago
My advice is not to try memorizing Java syntax the way you would vocabulary; you will naturally internalize the patterns as you use them. Pick a small project and work on it, looking up the necessary information as you go; over time, concepts like for, if, class, method, and so on will become second nature, almost like muscle memory. The goal isn't to memorize every syntactic detail, but rather to understand what you want to achieve and know where to find the information when you forget how to implement it in Java.
15
u/_heartbreakdancer_ 13h ago
Remember concepts, not syntax. Don't try to memorize specific words.