First Java Program

Java programming tutorial will be discuss part by part for the better understanding. Our last post related to java was about how to install jdk on our local machine. Today we are going to share how you will run java and the first program of java.
First Java Program

After the installation of jdk now go to you system drive c drive then go to program file and open java folder then copy the jdk folder and paste it to direct c drive.

Folder name: jdk1.7.0_79
copy from: C:\Program Files\Java\jdk1.7.0_79
paste to : C:\jdk1.7.0_79
and the next step is-
Java Programming Language Tutorial
Now go to C:\Windows\System32\ and copy cmd.exe file and paste it to C:\jdk1.7.0_79\bin location.
Java Programming Language Tutorial

You are ready to start programming of java language, open first.java file with notepad or any editor then type the bellow codes and save it now open cmd.exe from bin folder in jdk and type javac first.java press enter then again type java first and press enter now you will see your program is printed with hello world.

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

this is our first java program that print and show on display Hello world.
Java Programming Language Tutorial

For the better understanding chek this video: First Java Programming Tutorial

0 Comments