r/javahelp • • 6h 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?

4 Upvotes

15 comments sorted by

â€ĸ

u/AutoModerator 6h 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.

1

u/logperf 5h 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 5h ago

Where do you guys do examples/questions from?

1

u/logperf 5h ago

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

1

u/Competitive_Mark918 5h ago

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

2

u/logperf 5h ago

I said it clearly: the official tutorial.

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

1

u/Humble-Bag-2929 4h ago

Yo uso nextpatch.dev para aprender sobre las novedades sobre java, hago actividades de forma constante y lo hago cuando quiero

1

u/Worth_Imagination495 2h ago

教わりãĒãŒã‚‰ã§ã‚‚ã„ã„ã‹ã‚‰ã€åŽŸéš›ãŽã‚ˇã‚šãƒ†ãƒ ãĢæēã‚ãŖãĻバグ回収したりしãĻ原務としãĻįĩŒé¨“するぎが一į•Ē旊い

勉åŧˇã¨ã‹å­Ļįŋ’だけじゃ、įĩåą€å¯žåŋœåŠ›ãŒčēĢãĢつかãĒいし、
ã‚¯ãƒŠã‚šã‚„ã‚ŗãƒŧドが、æĻ‚åŋĩã‹ã‚‰č¨­č¨ˆã•ã‚ŒãĻį”Ÿãŋå‡ēされる というäēēé–“ãŽæ€č€ƒãƒģæ€æƒŗãĢå‰‡ãŖãĻäŊœã‚‰ã‚ŒãĻいることをäŊ“感しãĻã€č¨­č¨ˆã™ã‚‹ã“ã¨ã‚’å­Ļãļ

プログナムはãŋんãĒそう、į‹Ŧå­Ļとかå­Ļįŋ’ã˜ã‚ƒæ€æƒŗã¯čēĢãĢつかãĒい

そしãĻã€į´æœŸãĢčŋŊわれãĒãŒã‚‰ã‚‚ã‚ŗãƒŧドをåŊĸãĢするというč˛Ŧå‹™ã‚’į¤žäŧšäēē゚キãƒĢとしãĻčēĢãĢつける

1

u/NaveenB2004 1h 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.

1

u/awidesky 1h 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/BannockHatesReddit_ 1h ago

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

â€ĸ

u/YetMoreSpaceDust 14m ago

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

-1

u/AffectionateLie2579 6h 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 5h ago

Is chatgpt enough?? Like for practise also?

0

u/AffectionateLie2579 5h ago

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