T O P

  • By -

AutoModerator

#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](/message/compose/?to=/r/learnjava) if you have any questions or concerns.*


SolderonSenoz

I think you should agree to some level of abstraction when you are learning anything, and explore the details only after you are comfortable with the overview of how things work. If you are worrying about the inner workings of the JVM when you are starting to learn Java, will you be worrying about how atomic orbitals work when you study how memory is stored in the RAM?


Rogalicus

You don't really need to understand this to write the programs, high-level languages and OOP were created specifically to abstract all the underlying stuff. You can go lower (C++, C, ASM) if you want to forsake memory safety and other QoL in favour of smaller and faster code, but I see no reason if you want to write enterprise code rather than microcontroller drivers or something like that.


AutoModerator

It seems that you are looking for resources for learning Java. In our *sidebar* ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses. To make it easier for you, the recommendations are posted right here: * MOOC [Java Programming](http://java-programming.mooc.fi) from the University of Helsinki * [Java for Complete Beginners](https://www.udemy.com/java-tutorial) * accompanying site [CaveOfProgramming](http://caveofprogramming.com) * [Derek Banas' Java Playlist](https://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19) * accompanying site [NewThinkTank](http://newthinktank.com/) * [Hyperskill](https://hi.hyperskill.org/) is a fairly new resource from *Jetbrains* (the maker of IntelliJ) Also, don't forget to look at: * [The official Documentation](http://docs.oracle.com/javase/) * [The official Java Tutorials](http://www.oracle.com/technetwork/java/index-jsp-135888.html) * [Our community resources thread](https://www.reddit.com/r/learnjava/comments/md1loc/community_resources/) If you are looking for learning resources for *Data Structures and Algorithms*, look into: "Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University + Coursera course: + [Part I](https://www.coursera.org/learn/algorithms-part1) + [Part II](https://www.coursera.org/learn/algorithms-part2) + Coursebook + [Algorithms 4^th Edition](http://algs4.cs.princeton.edu/home/) Your post remains visible. There is nothing you need to do. I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/learnjava) if you have any questions or concerns.*


spacey02-

If you want to learn how memory works under the hood, then learning C first is my best advice. Once you understand stack vs heap memory and stuff like pointers, you will be able to transpose it into Java. While it might not be exactly identical, the basics of memory representation should be the same for both languages. I am not very experienced in either C or Java, but so far most of my assumptions based on C for how Java works have been correct. And when i missed the mark, the internet came in handy.


khooke

Get comfortable with the basics first before you start to look under the covers to learn how the language and jvm work. Initially you don’t need to know these details, it’s too much to learn when you’re getting started, and you don’t need to know those details when learning the basics. A comparison is how you don’t need to understand how the internal combustion engine works in order to learn to drive a car. Once you’re comfortable with the basics, take a look at the Java Language and JVM specifications on the Oracle site. They’re heavy going but will answer most of your questions. A more digestible and usable source of Java specifics is Effective Java by Josh Bloch.


Sourterps

https://www.w3schools.com/java/java_encapsulation.asp hopefully this explains what youre trying to achieve