Page 1 of 1

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

Posted: Sat Mar 14, 2015 5:28 pm
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.

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

Posted: Sat Mar 14, 2015 9:25 pm
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.