r/javahelp • • Oct 12 '26

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!

13 Upvotes

53 comments sorted by

View all comments

Show parent comment

1

u/Best_Cut4655 Oct 13 '26

Ohhh, u answered a lot of my questions and left me with even more ahaha, but thank u so much this is all very useful knowledge! It seems classes might be an essential thing for me to learn next about

1

u/FreeLogicGate Oct 13 '26

Glad to see you found that that useful. Java, being a fully object oriented language, means that you are always using Classes and objects. Your hello world required a class definition, containing one method, and that method makes use of the standard java library "System" class, which has an "out" method. So even in the hello world, you're already required to be immersed in Java OOP.

1

u/lepetitpoissonkernel Oct 15 '26

You should get a book or online course that walks you through these things in the order that the author/teacher deemed makes most sense. These instructors put a lot of work into exposition because there are various concepts that you kind of have to take for granted until you get to them. It’s a mistake to go from copy paste hello world program to learning about classes. You first need to learn about variables, control flow (if/while/for) and functions. If you haphazardly run around YouTube nothing will make sense.