First Program of Java
Installation and setup -->
Its a simple program of java.For better Understanding..First time when i looking a create simple program of java then i need the installed java setup on own computer and laptop or whatever u have etc , after installation setup then you will need set up the path of java environment.let's look how to set the path on your systems.First of all u go to on my computer properties then click on the Advanced systems settings and go on Environment variables and click the new button and type in the Variable name "path" and variable value type where your setup have located such as..C:\Program Files (x86)\Java\jdk1.6.0 and save that..now need to open the cmd and type java and then enter now render the java specifications only for checking purpose.
public class Hello{
public static void main(String args[]){
System.out.println("Hello Programmer..");
}
}
public static void main(String args[]){
System.out.println("Hello Programmer..");
}
}
Installation and setup -->
Its a simple program of java.For better Understanding..First time when i looking a create simple program of java then i need the installed java setup on own computer and laptop or whatever u have etc , after installation setup then you will need set up the path of java environment.let's look how to set the path on your systems.First of all u go to on my computer properties then click on the Advanced systems settings and go on Environment variables and click the new button and type in the Variable name "path" and variable value type where your setup have located such as..C:\Program Files (x86)\Java\jdk1.6.0 and save that..now need to open the cmd and type java and then enter now render the java specifications only for checking purpose.
Code type and Editing -->
Now comes to next step..open the notepad and type your java source code and after typed save as your source name of class with .java extension and save as..
Compilation and Execution steps -->
Open the cmd and go your directory where save your java source code.then type javac space Your Filename.java and press enter.if your code have no errror then generates the.class file of java during comilation.Now after compilation you'll need Execution process here you type java space and class name of java and then enter.Now it will be your result render on your screen...
Code specification -->
1) First line describes the class declaration with unique identifier.it may be public.
2) Second line is main method declaration with their blocks.
3) Message print statement on commond
4) Closed all blocks
Now comes to next step..open the notepad and type your java source code and after typed save as your source name of class with .java extension and save as..
Compilation and Execution steps -->
Open the cmd and go your directory where save your java source code.then type javac space Your Filename.java and press enter.if your code have no errror then generates the.class file of java during comilation.Now after compilation you'll need Execution process here you type java space and class name of java and then enter.Now it will be your result render on your screen...
Code specification -->
1) First line describes the class declaration with unique identifier.it may be public.
2) Second line is main method declaration with their blocks.
3) Message print statement on commond
4) Closed all blocks