Explanation of a "Hello World" program in Java. 04-03-2013, 07:49 AM
#1
So, I've been recently working on Java, just started today, but I remember the basics of a hello world program.
So, here's the code, but I'll try my best to explain what I know.
So, from what I know, I can tell you that a "class" is where a java program stores information, and you have to have a certain class.
And "System.out.println("Test");" is telling your program to send out a line from the system, ("Test") being the message, but only "Test" shows up.
That was my first post, just explaining how shit goes.
^_^
So, here's the code, but I'll try my best to explain what I know.
Code:
public class testclass {
public static void main(String args[]){
System.out.println("Test");
}
}So, from what I know, I can tell you that a "class" is where a java program stores information, and you have to have a certain class.
And "System.out.println("Test");" is telling your program to send out a line from the system, ("Test") being the message, but only "Test" shows up.
That was my first post, just explaining how shit goes.
^_^



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)






