How to develop A Hello world Progaram ?
Let's see the development of Hello world program.
Develop the program as show below.
class Test { public static void main(String[] args) { System.out.println("Hello World!"); } }
Here in bule color all are keywords , red are inbuilt classes and pink is the string literal.
More about keywords,identifiers and basic syntax click here.
Save this code with file name as Test.java .
Here Test is class name and .java is the file extension for java files.
e.g D:\app1\src\Test.java
Start the command prompt and follow the procedure
C:\Users\xyz>D: D:\>cd app1\src D:\app1\src\>javac Test.java D:\app1\src>java Test Hello world!
Download this File
Internal process of compilation stage click here
0 comments :
Post a Comment