-->

Tuesday, 27 June 2017

Simple Program of Java

Simple Program of Java

To create a simple java program, you need to create a class that contains main method. Let's understand the requirement first.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.

Requirement for Hello Java Example

For executing any java program, you need to
  • install the JDK if you don't have installed it, download the JDK and install it.
  • set path of the jdk/bin directory. 
  • create the java program
  • compile and run the java program
Creating hello java example
Let's create the hello java program:
  1. class Simple{  
  2.     public static void main(String args[]){  
  3.      System.out.println("Hello Java");  
  4.     }  
  5. }  
Test it Now
save this file as Simple.java

To compile:javac Simple.java
To execute:java Simple
Output:Hello Java

keep calm and say bujuku bujuku.

0 comments:

Post a Comment

Start Work With Me

Contact Us
KUTTY SELVA
+91 7708139984
Madurai,Tamilnadu