Professional Documents
Culture Documents
Step2:
Notepad would ask if you want to create the file. Click on Yes.This would create the file and you can type the code in it
Step3:
Type the following code.All this code does is print Hello World! on the screen.Remember Java is case sensitive
Step4: Compilation
Now Save the file and get back to the command prompt and type the following command as shown.This command would compile Class1.java and produce Class1.class which contains Java byte code which is machine independent.