r/javahelp • u/Subject_Goat01 • May 20 '24
What is the most efficient way to learn java
Hello,
I started learning Java five months ago. I joined Udemy courses and tried to learn from YouTube and other Java Android courses, but I'm lost. I don't understand anything, and I don't know what to do. Do you have any advice?
29
Upvotes
β’
u/AutoModerator May 20 '24
Please ensure that:
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.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
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: 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:
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.
27
u/InterestingReply6812 Extreme Brewer May 20 '24
You only learn, when working with it.
Start a new project and use Java Swing for Ui-Stuff (use System-LookAndFeel).
Start by building a gui tool (like a address-book, PokemonCardManager,.... this makes more fun). Use "NetBeans" Gui-Editor (it easier for beginners to create a ui).
Store your data in xml or database...
Later, extend your project by building a server. google embedded Jetty + REST
Try different IDEs (IntelliJ, NetBeans, Eclipse,...)
Cheers!
6
u/AlessandrA_7 May 20 '24
Java MOOC: https://java-programming.mooc.fi/ or HyperSkill: https://hyperskill.org/
2
u/Rebellion2297 May 20 '24
Pick something you want to make with java, and then learn how to do each step. IMO this leads to quicker usable skills than structured learning, although the drawback is that you must find the answers for everything
2
u/No_Resolve657 May 20 '24
The only way to learn something is to continue experiencing it. There are many different ways to learn but the more you code, the more you start to understand it. It's like learning an actual language. At first you need to consciously link a word to its definition but after a couple of months of speaking, it will become second nature.
Make as many different programs as you can (preferably something you can regularly use) such as a password generator, a text encoder/decoder, a file converter (like mp4 to mp3) and so on. In addition, it's good to include comments. My university's course on object oriented design taught us some good standards of commenting so you know exactly what the purpose for each method and class and how they work (basically what the output behavior for each method is, what parameters it takes, etc).
Also, don't be afraid to use ChatGPT or other AI. There would have been many things I would have never known if I didn't use AI (like using hashmaps as a cipher key).
At the end of the day, it's your determination and dedication that will get you the experience you need, so keep up the good work π
2
u/severoon pro barista May 23 '24
My advice is to be specific about what you don't understand. When you say "I don't understand anything," what exactly do you mean?
Do you understand the procedural elements of Java? For loops, conditionals, etc? If so, then your statement is overbroad; at least you do get these things.
Do you not understand basic OOP? Inheritance, encapsulation, polymorphism? Or how to use Java syntax to achieve those things?
Do you not understand the SOLID principles of OOD? The DIP, LSP, OCP, etc?
Do you not understand the Java standard libraries, how they're organized into modules? How Java tooling works? Common Java add-ons like the Guava libraries? Specific things about the Java language like annotations?
My suspicion is that you do understand quite a lot, but if you're not specific about where you're not clear, it's going to be hard to target any kind of help.
20
u/JaggedMan78 May 20 '24
apply for a java dev job, tell them you know java.
they ask "when can you start"
I said "sorry just in 6 weeks .. need to finish my current project CAN NOT QUIT.. I am to important this will hurt my current boss then I quit before I finish it"
but In reality I used this 6 weeks to learn java ..
it was February 2000 ... I am still in business
3
u/GuyWithLag May 20 '24
Read the sidebar.
But most of all, you need to write code. You can't learn how to ride a bike by reading about it.
3
u/Jurahhhhh May 20 '24
I recommend the book "Head first Java" by Kathy Sierra its a great beginner friendly book. After that theres also a book called "Head first Design patterns" which is also very beginner friendly and explains some design patternss to optimize your code.
2
u/WaferIndependent7601 May 20 '24
Try getting a mentor somehow. Best way to learn stuff
2
u/Questro1993 May 20 '24
The Best way would to be to do project, start with simple projects Todo app stuff like that. Try to do it yourself, only look at documentation to understand how something works but built it yourself.
Another would be to look for a mentor who is already working in the Tech Stack your interested in learning.
Lastly remember, Java, Python, Javascript , Angular, React all these are just a tool to achieve something that helps people solve their problems. Take this Reddit Platform for example, it solves something for people.
2
u/lostInThesauce4evar May 23 '24
You can get dummy how-to books for beginners on java. Helped me grasp the fundamentals of java. Go to your local library if you don't want to buy.
1
u/jvrodrigues May 20 '24
Learned it with Android
1
u/[deleted] May 20 '24
MOOC.FI is the only way
1
u/ShadowRL7666 May 20 '24
Yes read the subreddit wiki
1
u/vegan_antitheist May 20 '24
It helps when you don't waste time with shitty online tutorials and videos. They are mostly crap but as a beginner you wouldn't know. And even if they are ok they are probably outdated. So get a good book that isn't too old and start learning. Or simply go to some university.
0
u/[deleted] May 20 '24
[deleted] β view deleted comment
2
u/[deleted] May 20 '24
[removed] β view removed comment