About Question enthuware.ocajp.i.v7.2 . 1281 :

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

Moderator: admin

Post Reply
Denn777
Posts: 4
Joined: Sat Mar 14, 2015 5:19 pm
Contact:

About Question enthuware.ocajp.i.v7.2 . 1281 :

Post by Denn777 »

There is a typo! The right answer is E! Because: break without a label, can occur only in a switch, while, do, or for statement.

What about for each/enhanced for loop ? Enhanced for loop doesn't equal to for loop ! The difinition of enhanced loop has been introduced since java 5 only.

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

Re: About Question enthuware.ocajp.i.v7.2.1281 :

Post by admin »

Yes, when you say a for statement, it includes regular for and enhance for. When you say "regular for", it means only the regular for and not enhanced for. When you say, "enhanced for", it means only the enhanced for.

It has now been made clear in the option.

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests