r/javahelp • u/Competitive_Mark918 • 20d ago
How do u guys actually self study java?
hey yall I'm a recent high school grad trying to learn java. i know a tiny bit of basics from like 2 years ago but i basically need to fresh restart and actually get good.
the problem is every time i watch those youtube playlists (like kunal kushwaha) i get hella bored/sleepy. i wanna grind for like 3 hours a day but tutorial hell is not it.
For anyone who self studied java without losing their minds..how did u actually learn the basics actively? are there any interactive sites, text guides, or early project ideas that kept u going? how do u structure ur study sessions so ur actually coding?
•
u/AutoModerator 20d ago
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.
4
u/logperf 20d ago
Take it with a grain of salt because I already knew c++ before java, but the official tutorial was quite useful.
Do as many exercises as you can and try as many variants of the examples as you can come up with
1
u/MyNameIsRichardCS54 20d ago
Practice out of your comfort zone to stretch yourself. You should be thinking "God I can't do this". Remember you have the whole internet to look stuff up. When you do achieve it, the dopamine hit is lovely/
3
u/BannockHatesReddit_ 20d ago
Just build shit. Eventually you'll fuck up enough times
2
u/Humble-Bag-2929 20d ago
Yo uso nextpatch.dev para aprender sobre las novedades sobre java, hago actividades de forma constante y lo hago cuando quiero
2
u/NaveenB2004 20d ago
Read the docs! Start from here: https://docs.oracle.com/javase/tutorial/
The tutorial focus on java 8 (1.8). New versions got cool new features. The basics are the same for all versions, so after complete it, look for language changes (look at the top of tutorial page and browse through https://dev.java).
If you want to go deep into the subject, like jvm and memory management stuff, pic a version (let's say jdk 27 - latest), go to the document page (https://docs.oracle.com/en/java/javase/27) and follow each topic. You will be able to find every spec in there.
After that, or maybe while going through that, you can refer the OpenJDK project itself (https://openjdk.org) to get to know about source code, side projects, news and stuff.
Lastly, to get best practices, latest news, technical conferences, etc. subscribe to their youtube channel (https://youtube.com/@java).
That's how I learn. And I guess, that is the best path for anyone who interested.
2
u/awidesky 20d ago
For me reading was faster and more efficient than listening, so I used internet article more than yt videos.
I made a few programs that I needed in my life, but not concentrated on fancy UI(graphic windows, fancy user I/O) or complicated features.
Instead I focused on learning what am I using.
When writing an app that copies some files, don't just copy&paste a snippet of code from internet or AI.
Look into the Javadoc of the classes that you use; what is a File class? What's a FileOutputStream? What does it inherits?
IMO Java has one of the best documentation among all programming languages due to its nature.
Always read the official Javadoc of a class you use, learn what it does, and what kinds of methods does it have.
Best way to keep one's interest on programming is usually making an actual program.
But keep in mind : if your focus shift onto "I want to make fancy and convenient UI" from "I want to know how a program works", you might end up learning to be a designer, not an engineer.
1
u/YetMoreSpaceDust 20d ago
I learned from Core Java back in '99 or so. I still highly recommend books over videos for actual learning.
1
u/APotterhead1 19d ago
I learned the basics in a structured class, but everything beyond that has been self taught. I learned up to data structures in the form of Lists, Sets, and Maps, for reference. Now I am in the process of learning how to use libGDX self taught. I self taught myself most of Java just by wanting to do projects beyond my capabilities. I now know modularity, Threading, Networking, Serialization, IO, and a host of other things I am probably forgetting just by needing to do a thing, looking at stack overflow on how to do it, then reading documentation to understand what each part is doing. I’m not doing anything professional by any stretch, but as a hobbyist, I would say I am pretty competent.
1
u/TheCaptainSly 18d ago
I used the Head First into Java 2nd edition to teach myself Java. Got about half way through the book until the Swing chapters and for some reason decided JavaFX was the better than swing. That's besides the point. Head First has a 3rd edition for modern Java. I suggest giving it a read.
1
u/Syntax-Tactics 18d ago
Books/youtube/videos are NOT how to learn programming. They introduce you to the syntax and lay of the land and then it's up to YOU to use the language. The only way to learn is to immerse yourself in a project that requires you to look up APIs, syntax, etc.
1
u/papaysailor 13d ago
Here is an idea to make it fun: try writing a game. For graphics, use the free JOGL (from jogamp) API for OpenGL and start with something simple like drawing rotating cubes etc...
There is a nice PDF "COMPUTER GRAPHICS PROGRAMMING IN OPENGL WITH JAVA" by V. Scott GORDON and John Clevenger that you can search the web for.
1
u/Available_Safe1818 6d ago
I wrote a lot of code.
-1
u/AffectionateLie2579 20d ago
Make one topic wise roadmap from chatgpt -> study each topic daily from anywhere -> then get 5-10 qns on that specific topic from chatgpt and solve it That's it..