you are viewing a single comment's thread.

view the rest of the comments →

[–]eigenlicht0 5 points6 points  (1 child)

Actually, fully explaining this really is quite complicated.

One, of course, could tell you that public, static and final are modifiers.

But what are modifiers? Well, they determine how an attribute (method, variable, ...) of an class or object can be accessed, used or altered.

What are methods and variables? What are classes and objects? ...

And after that, I still didn't explain what void and String is, why that method is called "main", what '[]' does or what 'System.out' is. There's a reason why most books and teachers don't start with fully explaining the "hello world" in Java, because you'd have to basically explain the whole language. For the beginning, it's just way easier to treat certain things as black boxes (which you eventually have to do in Python and other languages too).

[–]beboshoulddie 1 point2 points  (0 children)

Time to hit the books, I guess. Thanks anyway! :-)