From 21b767539c8709c66a282e0aa5333eddb70b346f Mon Sep 17 00:00:00 2001 From: S R Date: Thu, 21 Feb 2019 18:41:27 +1100 Subject: [PATCH] Additions to Hello World guidance. (#27929) Mention about .class files and not using .class extension while running. --- guide/english/java/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guide/english/java/index.md b/guide/english/java/index.md index 85507184f1..ee4e6e3109 100644 --- a/guide/english/java/index.md +++ b/guide/english/java/index.md @@ -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