Free Video Tutorials

Free Video Tutorials

Java Tutorial 4

 

This video will help you code your first Java program.

 

JavaScript is disabled!
To display this content, you need a JavaScript capable browser.


Assignment

Step 1 ) Copy the following code into a notepad.

class A {
    public static void main(String args[]){
       System.out.println(“First Java Program”);
    }  

}

 

Step 2 ) Save the file in the directory directory C:\workspace ,  as FirstProgram.java   in the & not as FirstProgram.java.txt

Step 3 ) Open the command prompt. Go to Directory C:\workspace . Compile the code using command,  javac FirstProgram.java

Step 4) Run the code using command, java A

 

                                                      Back to Java Tutorials Index Page

 
 
Joomla 1.5 Templates by Joomlashack