Additions to Hello World guidance. (#27929)
Mention about .class files and not using .class extension while running.pull/33085/head^2
parent
8448e71299
commit
21b767539c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue