r/javahelp • • 19d 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?

14 Upvotes

26 comments sorted by

•

u/AutoModerator 19d ago

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

  • 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.

    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:

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.

4

u/logperf 19d 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/Competitive_Mark918 19d ago

Where do you guys do examples/questions from?

3

u/logperf 19d ago

The official tutorial has lots of examples. I tried variants of them as exercises.

1

u/Competitive_Mark918 19d ago

I am really sorry, but which tutorial? That kunal khushwaha only?😭

3

u/logperf 19d ago

I said it clearly: the official tutorial.

https://docs.oracle.com/javase/tutorial/

1

u/GermanBlackbot 17d ago

Don't forget the Official Oracle Java Tutorials and the Official Java Documentation as they are extremely valuable resources.

The sidebar says it all. With links. Always read the sidebar before posting to a new sub!

1

u/MyNameIsRichardCS54 19d 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/

1

u/Competitive_Mark918 19d ago

Danggg yeahh!!

3

u/BannockHatesReddit_ 19d ago

Just build shit. Eventually you'll fuck up enough times

1

u/CaffeinatedBytecode 17d ago

100% this. It's not only about knowing, but also gaining the confidence in the writing of Java. You didn't learn effectively in school from reading the books, neither did you from reading exercises. You did by making exercises, reproducing what was in the book.

I personally struggled a little bit in the beginning with building shit. Because I didn't know what to build, or I was building boring easy shit, or building shit that was way too hard for me. I have found that CodeCrafters really paces the difficulty quite well. And they tell you what shit to build. You also build some really cool shit.

But not everyone needs CodeCrafters though, that is just what helped me.

2

u/Humble-Bag-2929 19d 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 19d 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 19d 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/litllechimp 18d ago

you said u were reading but what exactly just the official javadoc on oracle ? and where do yall find like examples or exercices or even projects to practice

1

u/YetMoreSpaceDust 19d ago

I learned from Core Java back in '99 or so. I still highly recommend books over videos for actual learning.

1

u/APotterhead1 18d 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 17d 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 17d 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/CaffeinatedBytecode 17d ago

This. Watch a video on a topic you need for whatever you are building, like say for example reflection. Then get your hands dirty and work with it yourself.

1

u/papaysailor 12d 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 5d ago

I wrote a lot of code.

-1

u/AffectionateLie2579 19d 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..

1

u/Competitive_Mark918 19d ago

Is chatgpt enough?? Like for practise also?

0

u/AffectionateLie2579 19d ago

Yepp.. don't overthink just start first... And after that you can grind gfg basic problems.