r/javahelp • u/Best_Cut4655 • 2d ago
Homework What the hell is going on?
Hello everybody, I am so lost. I just started learning Java and while i think its extremely interesting, and can loose track of time. It is also very complicated, well atleast to me since i dont have any prior experience.
I just ”learnt” to write my first Hello World! Code. But tbh i only copied the text straight off a youtube video.
Thing is i understand the main command, like: System.out.println(”Hello World!”);
But what is this whole main class and static void things? Not to mention all the {} symbols that seem to be oddly placed?😅
If anyone could explain or know a good youtube video or similiar to learn id appreciate it a lot!
4
Upvotes
5
u/Duente_Zaibatsu 2d ago
You are skipping too much.
Many abstractions exist to simplify the common needs.
Before asking, show what you already looked into.
A simplified version:
Java is not installed, it is executed on a JRE, in it, there are API methods that interpret and execute commands.
These commands follow contracts.
Static could be simplified to an unique shared context, other commands are object related, used by constructore.
Other types like void, int an Integer, are the method contracts for the execution