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.
About Question enthuware.ocajp.i.v8.2.1437 :
Moderator: admin
-
- Posts: 8
- Joined: Tue Nov 07, 2017 8:23 am
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1437 :
The book is correct and so is this option. The first command is for compiling the java file and second is for running it.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 85 guests