Wednesday, 16 August 2017

How to Creating hello program in java with example

How to Creating hello program in java with example

Simple Program of Java
In this page, we will learn how to write the simple program of java. We can write a simple hello java program easily after installing the JDK.

To create a simple java program, you need to create a class that contains main method. Let's understand the requirement first.


Requirement for Hello Java Example
  • install the JDK if you don't have installed it, download the JDK and install it.
  • create the java program
  • compile and run the java program
  • Creating hello java example

Let's create the hello java program:

Example :
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
      }
}

Post a Comment

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search