Page 1 of 1

enthuware.ocpjp.v7.2.1295

Posted: Wed Feb 04, 2015 9:32 am
by NandaMin
I choose last two options
- It will print : Helped : John
- It will print : Helped : Pope

Enthuware test agine answer
- It will print :
Helped : Pope
Helped : John

- It will compile with a warning.


And I run on netbeans without warning as followed

run:
Helped : Pope
Helped : John
BUILD SUCCESSFUL (total time: 5 seconds)

I found below dicussion regarding this issue here

http://www.enthuware.com/forum/viewtopi ... =38&t=1757
Hi,
I feel the last 2 options are correct and not the first 2. As the helpPeople() has
System.out.println("Helped : " + p + " ");
so every o/p is on a new line.
thanks!
You are right. The first option is modified to show the output in two lines to avoid this confusion.

thank you for your feedback!
Paul.
Please advise.

Re: enthuware.ocpjp.v7.2.1295

Posted: Wed Feb 04, 2015 10:01 pm
by admin
The option says it will compile with a warning and not run with a warning, which is correct.

HTH,
Paul.

Re: enthuware.ocpjp.v7.2.1295

Posted: Tue Jun 23, 2015 6:25 am
by Alexey Berezkin
Hi,

Please add newlines to 5th option
It will print : Helped : John Helped : Pope
otherwise it's obviously incorrect.

Re: enthuware.ocpjp.v7.2.1295

Posted: Tue Jun 23, 2015 11:25 am
by admin
Added.
thank you for your feedback!