21
Aug
09

Java – Hello World

First Java Program

First to Compile and run a java program you need a Java SE Development Kit . if you don’t have java SE Development Kit download and install from the above link

Below are the steps to compile and  run a java Program

Step1.

create a folder JavaProg. I have Created in D:\data\JavaProg

Step2.

Open a text file copy and paste the helloWorld program and save it as “helloWorld.java” in D:\data\JavaProg

public class helloWorld

{

public static void main(String[] args)

{

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

}

}

Step3.

Open a command Promt and type the following commands

java execution

Commands are highlighted by a red box and output was highlighted by a green box..
Notify me of follow-up comments via email.

About these ads

0 Responses to “Java – Hello World”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: