enthuware.ocpjp.v7.2.1295
Posted: Wed Feb 04, 2015 9:32 am
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
- 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!
Please advise.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.