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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
SeoaneR
Posts: 8
Joined: Tue Nov 07, 2017 8:23 am
Contact:

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

Post 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.

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests