HelloWorld Program in Java

This is the sample program to print hello world program in java.
  • If you use Eclipse IDE then rightClick->run us->java application.
  • If you use notepad then windows->rightClick->runas->cmd->javac Helloworld.java->java Helloworld .java
  1. package com.sample;
  2. public class Helloworld {
  3. public static void main(String[] args) {

  4.   System.out.println("Hello World!!!");

  5.  }
  6. }

No comments:

Post a Comment