Tuesday, April 7, 2015

Hello World in Java

In this blogpost I will show you how to write SIMPLE hello world program in Java using command line.

On Windows :
> Type cmd in start
> in cmd type notepad press enter
> In notepad type following



> Save the notepad to cmd's present working directory
> execute javac "filename.java"
> execute java -classpath . filename.class
> Output should be "Hello World!"

Have fun .. this is just a sample blog......

No comments:

Post a Comment