Hello Java Program

To make a java program, we have to make a class that contains the main method.


For executing any java program, you have to-

  • Install the JDK in the system.
  • Set path of the JDK/bin registry.
  • Make a java program.
  • Compile and Run the java program.
First Hello program

Class Hello{

public static void main(String args[]){

System.out.println(“Hello Java”);



Hello Java Program
To compile:

javac Hello.java

To execute:

java Hello


Hello Java

Copyright 1999- Ducat Creative, All rights reserved.