Hello World Java
The basic object-oriented underpinning of Java has been discussed, let’s look at some actual Java programs. Let’s start by compiling and running the short sample program shown here.
The requirement for run Java Program
- Download the JDK download the JDK and install it.
- Set path of the jdk/bin directory. http://www.androwep.com/how-to-set-path-in-java
- Create the java program
- Compile and run the java program
class Example { // Your program begins with a call to main().
public static void main(String args[]) {
System.out.println("Hello World Java");
}
}
Output
Hello World Java