1. Java hello world program:
To start with java programming, compiling and printing out "HelloWorld" string is the first lesson which many java beginners start with.We create a class which is called HelloWorld class. In this class, we have a main method with static void, which is firstly run by java.

2. Compile:
Go to your directory and run the code javac *.java, it will compile all java files. If there is no error, you then run the code java HelloWorld to run the HelloWorld class.The output: Hello world!
To find out about boolean type in java:
Comments
Post a Comment