Thursday, 16 August 2012

Hello World with Java

This is the first program in Java:

public class Hello
{
    public static void main(String donk[]) throws IOException
     {
         System.out.println("Hello World");
       }
}

heLLo WoRlD

Printing the "HELLO WORLD" is probably the first program of any programming language.

#include<stdio.h>
void main()
{
   printf("Hello World");
  }