About Question com.enthuware.ets.scjp.v6.2.657 :

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

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.657 :

Post by ETS User »

class Test
{
public static void main(String args[])
{
int i=0, j=0;
X1: for(i = 0; i < 3; i++)
{
X2: for(j = 3; j > 0; j--)
{
if(i < j) continue X1;
else break X2;
}
}
System.out.println(i+" "+j);
}

Answer is 33 not 03 as stated.please rectify

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

Re: About Question com.enthuware.ets.scjp.v6.2.657 :

Post by admin »

Hello,
The correct answer 3 3 is indeed displayed by the simulator as well.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

atox86
Posts: 1
Joined: Wed Apr 21, 2021 10:50 am
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.657 :

Post by atox86 »

YOu are right, I as getting crazy!!! Fix it!!

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

Re: About Question com.enthuware.ets.scjp.v6.2.657 :

Post by admin »

Fix what??
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 37 guests