Java - Installation and running a first java program - Running a first java program Tutorial
Open a simple text editor like notepad or IDE like eclipse.
Write Java Hello World Example. And save it with name FirstProgram.java
// Java 1st Hello World Program
public class FirstProgram{
public static void main(String[] args) {
System.out.println("Hello World");
/* This Line will Print Hello World */
}
}
Click on compile and run and you will able to see following output
Hello World
Congratulations! You have composed and executed your first Java program. We will learn java instructional exercise more in detail in the above talk.