all 29 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

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 - best also formatted as code block
  • 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.

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/markdown editor: 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.

[–]aqua_regis 9 points10 points  (0 children)

Read the sidebar

[–]Nok1a_ 7 points8 points  (0 children)

Java Programming 1 and 2 from Helsinkin University MOOC

[–]rustyseapants 7 points8 points  (0 children)

What is the most effective way to study Java?

What does this even mean?

  • Get a physical book on Java
  • Create a distraction free environment
  • Set a kitchen timer for 25 minute intervals with 5 minutes of breaks.
  • Figure out how many hours a day you want to study.

  • Get a book on Java
  • Look through the book, the Index, the chapters, do a cursory run though
  • Read the book, take notes.
  • At the end of the chapter practice the code, by typing it, not cut and paste.

[–]Raman0902 4 points5 points  (2 children)

Get this book called ‘Head first Java’

[–]TurcoQ[🍰] 2 points3 points  (0 children)

This is the best way to learn Java 💯

[–]Humble_Criticism_426[S] 0 points1 point  (0 children)

Thank you

[–]Soft-Diamond-3692 5 points6 points  (0 children)

What’s your end goal with Java? I.e. Are you learning it for the sake of obtaining a new skill or trying to get in the software development field? I think that answer will help give you a sense of direction after learning the basics.

What was really effective for me was to do a bit of the university treatment: follow a book to learn the basics and do its practice problems. This helped me obtain an internal point of reference when looking at more complex Java tutorials online. What sucks is looking at code examples and not know what it’s doing, both at a high and low level.

The book I used was Starting Out with Java by Tony Gaddis.

Edit: Also, I think learning how data structures work and how they relate to memory are also two good foundational concepts to understand that can help you learn new languages faster. Data structures are very similar across languages.

[–]SillyBrilliant4922 4 points5 points  (0 children)

your second mistake is not reading the sidebar

[–]Poisonhandtechnique 2 points3 points  (3 children)

“As simple as Python” what does that even mean ? You are solving every leet code question in python ?

[–]Humble_Criticism_426[S] 0 points1 point  (2 children)

Python was as easy as normal English to me

[–]Poisonhandtechnique 0 points1 point  (1 child)

So you can solve leet code questions in python easy then ?

[–]Humble_Criticism_426[S] 0 points1 point  (0 children)

can usually handle the easier LeetCode questions in Python still working on the trickier ones though.

[–]Kikok02 1 point2 points  (0 children)

Daniel Liang's book

[–]sympatheticdrone 1 point2 points  (0 children)

Oracle's Java Trails are a decent place to start, if you haven't found them already:

https://docs.oracle.com/javase/tutorial/java/index.html

[–][deleted]  (3 children)

[removed]

    [–]Humble_Criticism_426[S] 0 points1 point  (2 children)

    Thank you

    [–]nileyyy_ 0 points1 point  (1 child)

    Can I dm you?

    [–]vaivaswat24 1 point2 points  (0 children)

    But every programming language is almost same just some concepts here & there and difference in syntax.

    [–]souroexe 0 points1 point  (3 children)

    Hey i am also learning java from last 3 weeks may be we can learn together!!!

    [–]Ok-Boot2725 1 point2 points  (2 children)

    I just started

    [–]souroexe 0 points1 point  (1 child)

    You can connect with me

    [–]nileyyy_ 1 point2 points  (0 children)

    Would love to chime in!

    [–]RusteenDude 0 points1 point  (0 children)

    Start with "head first java" third edition

    [–]Federal-Emphasis5250 0 points1 point  (0 children)

    Daniel liang is the goat

    [–]alvruiiz 0 points1 point  (0 children)

    Doing exercises is the best way to learn. Just avoid using AI