Join This Channel To Get Latest Phone Tips,Tricks,News,Network Security Course,Hacks etc. For Free on Your Mobile!! ... Join our Facebook Discussion Group -Regards Ankit

02 January 2012

Running Your First Java Program

This Post is written for L.L.J Series.

This is How You Can Run Your First Program in Java.

1. Install JDK.It Can Be Found Here.
2. Use a IDE (I am Using Notepad Here)
3. Write Your First Program and save it in:


4. Make Sure You Save The File With Same Name as Main Class File.
We are Writing The Code:
class Sample
public static void main(String s[])

We Will Save the Following Program with Name:
First Run Command Prompt and Navigate to C;/java/jdk/bin.

Now,Run the Program using These Commands:
java Sample

Congrats! You have Just Executed Your First Java Program.

Views This Month


HaCk-O-PeDia - The Hacker's Encyclopedia. Copyright 2010 All Rights Reserved To Ankit