Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1437 :

Posted: Fri Apr 19, 2019 2:19 pm
by SeoaneR
Hi
In relation to question 44 on Test 1 where the correct option is 2
javac MyFirstClass.java
java MyFirstClass hello hello

A book that I have been using to study it says:
"When running a java program, you pass just the name of the class without the .class extension."

Has the book got it wrong or am I misunderstanding the question.

Re: About Question enthuware.ocajp.i.v8.2.1437 :

Posted: Fri Apr 19, 2019 6:49 pm
by admin
The book is correct and so is this option. The first command is for compiling the java file and second is for running it.