Basic Simple program
EXAMPLE :
This is example of basic simple java program
class simple{
public static void main(String args[]){
System.out.println("Hello java")
}
}
save this file as simple.java
For compile: javac simple.java
For execute: java simple
OUTPUT
Hello java
Requirements for simple hello java program
- Download the JDK and install it
- Set path of the jdk/bin directory
- Create the java program
- Compile and run the java program
No comments:
Post a Comment