Additions to Hello World guidance. (#27929)

Mention about .class files and not using .class extension while running.
pull/33085/head^2
S R 2019-02-21 18:41:27 +11:00 committed by Manish Giri
parent 8448e71299
commit 21b767539c
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ Now open the terminal / Command Prompt. Change your current directory in the ter
$ javac HelloWorld.java
Now run the file using `java` command!
If your program compiled successfully, you can see the bytecode file or class file `HelloWorld.class` generated by the java compiler `javac` in the same folder.
Now run the file using `java` command! Please note that the `.class` extension is not used while running the class file.
$ java HelloWorld
Hello, World